Replies: 3 comments 3 replies
-
|
Also I did try to use |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
why does updatetag need to throw if it's not being run in a server action? this behaviour causes so much headaches for me in the mgiration to next 16, as i was heavily using revalidateTag and needed to migrate to the updateTag call |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Previously I had this 2 functions:
And after calling
editOfficethe page that rendered the enterprise offices would re-render.But now, after nextjs 16 I sustituted
if (response.ok) revalidateTag('office');withif (response.ok) updateTag('office');If I understood correctly, now
updateTaginvalidates the cache fromgetEnterpriseOffices, but now the page does not re-render. I have to refresh the page manually or to navigate to another page and then go to the originalHow can I trigger this re-render when visualizing invalidated data?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions