Routes with the same id are not firing on subsequent navigation #8962
Replies: 1 comment
-
Found out a remix layout behaviour description in issues section. Sorry for messing things up |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
The situation: I have a route called like
/user/:user_id
& routeuser/:user_id/friends
. The second route render a list of users with links to their own routes<Link to={user/{id}} />
. When I click on such a link, loader connected to routeuser/:user_id
doesn't fire. And this happens only if I already have/user/
in the pathname. If I create a<Link to={user/{id}} />
on, let's say' route/
then loader works just fine. I believe that Remix doesn't start loaders over if an actual id of a route (or parent route) is not changed. Is there any way to override it? I want route's loader to fire any time I navigate to link. Or is it a bug?Beta Was this translation helpful? Give feedback.
All reactions