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'd like for my component and application logic to be able to register callbacks that might trigger before or after router navigation. More broadly, I'd like to subscribe (and react) to router events. React router (version 6) doesn't appear to generate any navigation events. Is this correct?
Is it possible to add (and listen for) navigation events? React router seems to be pretty simple so it might not have this functionality (I notice it also doesn't seem to have any functionality for preloading routes), is there another router package for react that someone can recommend in this case?
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like for my component and application logic to be able to register callbacks that might trigger before or after router navigation. More broadly, I'd like to subscribe (and react) to router events. React router (version 6) doesn't appear to generate any navigation events. Is this correct?
Is it possible to add (and listen for) navigation events? React router seems to be pretty simple so it might not have this functionality (I notice it also doesn't seem to have any functionality for preloading routes), is there another router package for react that someone can recommend in this case?
Beta Was this translation helpful? Give feedback.
All reactions