You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe when useRevalidator().revalidate() is called, it revalidates the closest route component?
Is there a way to revalidate the root loader? My use case is to refresh global state from the API when certain lifecycle events happen (login, logout, upgrade plan, etc.)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I believe when
useRevalidator().revalidate()
is called, it revalidates the closest route component?Is there a way to revalidate the root loader? My use case is to refresh global state from the API when certain lifecycle events happen (login, logout, upgrade plan, etc.)
Beta Was this translation helpful? Give feedback.
All reactions