revalidateTag inside server action resets the state of my page (from useState).
Unanswered
Scottish Fold posted this in #help-forum
Scottish FoldOP
This page is client and does not have any caching. However it seems to be re-rendered and any state set with useState is reseted.
I was expecting it only reset state from other pages that was cached with the tag that I revalidated
I am using v14.2.4
I was expecting it only reset state from other pages that was cached with the tag that I revalidated
I am using v14.2.4
1 Reply
Scottish FoldOP
It seems to be related to the loading.tsx in the root of the project