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 can't figure out how I can stop Router#1 from running and in the next step start Router#2 and route to settings.
After all, only in this way I will get a clean history, without using the route(previousLoaction, false).
If in this case I use a Match, then Router No. 1 will still be empty when changing the route in Router#2.
Is there a wrapper or event that can mute Router #1 temporarily?
When I click on the tag a link, with a reference to the settings, I see that the context of one router to another is changing, Router# 1 does not know the history of Router#2 and this is normal.
current location - /Settings
previous location - undefined
The text was updated successfully, but these errors were encountered:
For now, I got the desired result by replacing the path on the previous route,
the result suits me, but when you click, sometimes you can see that the page is being updated (not always visible), but I have not yet tested this idea on pages with a large number of components.
Maybe it can be solved with a >children< wrapper or Match element, but I doubt it. a clean solution when switching, for example, to login and path: "/login" in the modal version, requires a background, so for the modal window in this case it is necessary to create a second Router component and somehow separate the logic between them through the userReducer or states. Or maybe using useRouter and somehow stop updating router:
If you look at the portals, in this case this is an extra div element that is not useful in this case, as it seems to me.
The disadvantage of this method is the creation of logic for tracking the previous page, on which there was a click and one extra render during the transition, but sometimes it is not visible.
I have two routers and I make a separation between their functionality.
I've tried a variety of options.
I can't figure out how I can stop Router#1 from running and in the next step start Router#2 and route to settings.
After all, only in this way I will get a clean history, without using the route(previousLoaction, false).
If in this case I use a Match, then Router No. 1 will still be empty when changing the route in Router#2.
Is there a wrapper or event that can mute Router #1 temporarily?
When I click on the tag a link, with a reference to the settings, I see that the context of one router to another is changing, Router# 1 does not know the history of Router#2 and this is normal.
current location - /Settings
previous location - undefined
The text was updated successfully, but these errors were encountered: