NextJS `useOptimistic` vs. tRPC react-query optimistic update?
I'm using
Does anyone have an example for using optimistic updates using t3-stack with app router and tRPC?
https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations#optimistic-updates
https://create.t3.gg/en/usage/trpc#optimistic-updates
- NextJS app router
- tRPC with react-query
Does anyone have an example for using optimistic updates using t3-stack with app router and tRPC?
https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations#optimistic-updates
https://create.t3.gg/en/usage/trpc#optimistic-updates