Nested Parallel routes extremely slow routing, also in prod
Unanswered
Asian black bear posted this in #help-forum
Asian black bearOP
I've been struggling with this issue for a few days now, assembling the routes in various ways.
I have a 2 panel view, where the right one is open conditioned on a search param being present. Thus the need for parallel routes.
Clicking certain things in the left panel will set this search param.
Problem is that is takes 2-4 seconds for the URL to update, this is in prod - it takes even longer in dev.
I can handle it faster with a context, but then I loose the benefit of shareable links and route history.
I don't know for certain that this is an issue with parallel routes themselves, but as far as my findings digging into this, it looks like the non-static routes that are generated is cause for some slowdown. Although people say that this should only occur in dev mode.
I'm very open to other suggestions on how to structure this code to avoid parallel routes. Maybe pages router would be better for the problem?
I did have a solution where I used routes to define the right panel, like
Thanks for any help! ðŸ™
I have a 2 panel view, where the right one is open conditioned on a search param being present. Thus the need for parallel routes.
Clicking certain things in the left panel will set this search param.
Problem is that is takes 2-4 seconds for the URL to update, this is in prod - it takes even longer in dev.
I can handle it faster with a context, but then I loose the benefit of shareable links and route history.
I don't know for certain that this is an issue with parallel routes themselves, but as far as my findings digging into this, it looks like the non-static routes that are generated is cause for some slowdown. Although people say that this should only occur in dev mode.
I'm very open to other suggestions on how to structure this code to avoid parallel routes. Maybe pages router would be better for the problem?
I did have a solution where I used routes to define the right panel, like
document/[docId]/notes but I cannot get these to render anymore, and if I can, only in the wrong panel.Thanks for any help! ðŸ™