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
This is a quite special usecase. I am building a browser game where you have one public router which routes can be accessed directly (for example imprint, privacy, invite link). But when the game starts there are multiple stages which should not be accessed publicly so I would like to use a memoryRouter only for these ingame routes.
I tried doing this, but I got an error telling me that I can only have one router in the app.
So can I somehow have browser routing on the parent and inside a specific route memory routing? Or should i maybe just build my own memory router with if / else statements for the ingame routing?
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.
-
This is a quite special usecase. I am building a browser game where you have one public router which routes can be accessed directly (for example imprint, privacy, invite link). But when the game starts there are multiple stages which should not be accessed publicly so I would like to use a memoryRouter only for these ingame routes.
I tried doing this, but I got an error telling me that I can only have one router in the app.
So can I somehow have browser routing on the parent and inside a specific route memory routing? Or should i maybe just build my own memory router with if / else statements for the ingame routing?
Beta Was this translation helpful? Give feedback.
All reactions