How do I setup a navigation loop? Two dynamic routes that the user could constantly navigate over? #538
-
TLDR: I have 2 dynamic routes. I want the user to be able to traverse these two routes indefinitely, with the back button taking them back through the pages they visited. Hi guys, I have a feed that shows cars, with the following structure:
At the moment, I am using the
Then, on the
And on the
At the moment, the flow works well when going from The animation goes backwards and then forwards again, also pressing the back button takes you back to the I presumed |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Here is a diagram of what's happening: |
Beta Was this translation helpful? Give feedback.
-
I have fixed it, it seems removing the
My
|
Beta Was this translation helpful? Give feedback.
I have fixed it, it seems removing the
_layout.tsx
's in my sub folders fixes the issue. I suppose they didn't serve much purpose, there were no subroutes needed in/car
or/manufacturer
... maybe I have still done something wrong, but for now, this file structure works:My
_layout.tsx
in/feed
looks like this: