Next.js Discord

Discord Forum

Refresh data on all pages

American black bear posted this in #help-forum
Open in Discord
American black bearOP
I'd like to use server actions but to run them manually using useTransition hook (not the form action). However I heard that it will refresh data only on the current page and old data will be still cached on other pages.

How can I use server actions and have data updated on all pages?

0 Replies