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
Am I the only one who feels that Route is missing an invalidate method to refresh loaders?
Something like:
Route.invalidate({scope: "self"})// current route only (default)Route.invalidate({scope: "all"})// entire matched route treeRoute.invalidate({scope: "ancestors"})// parents onlyRoute.invalidate({scope: "descendants"})// children only
Having invalidation directly on the route API feels more intuitive and closer to the mental model of “this route knows how to refresh itself and its context.” than this
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
Uh oh!
There was an error while loading. Please reload this page.
-
Am I the only one who feels that Route is missing an invalidate method to refresh loaders?
Something like:
Having invalidation directly on the route API feels more intuitive and closer to the mental model of “this route knows how to refresh itself and its context.” than this
Beta Was this translation helpful? Give feedback.
All reactions