tRPCttRPC
Powered by
Madmanali93M
tRPC•3y ago•
1 reply
Madmanali93

How to trigger revalidate after server action on a client component

https://github.com/trpc/examples-next-app-dir/blob/main/src/app/server-action/ReactHookFormExample.tsx

Following this experimental example I am wondering how to trigger the revalidate on the client side after the server action is complete?
GitHub
examples-next-app-dir/src/app/server-action/ReactHookFormExample.ts...
Contribute to trpc/examples-next-app-dir development by creating an account on GitHub.
examples-next-app-dir/src/app/server-action/ReactHookFormExample.ts...
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Revalidate / invalidate in server components
CircusCCircus / ❓-help
2y ago
Proper way to revalidate SSR but from Client Side, ie. after a success Mutation.
Ruslan GonzalezRRuslan Gonzalez / ❓-help
3y ago
How can I Prefetch on client or server component on App router Nextjs?
yaba101Yyaba101 / ❓-help
3y ago
how to refresh a request made on server from client side?
Adam BorygoAAdam Borygo / ❓-help
8mo ago