Question about parallel routes used as modal #83210
Unanswered
Berzerk3000
asked this question in
App Router
Replies: 0 comments
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. I work with next for some years now. For quite some time I wanted to use the intercepting route for some modal interaction. I Have a list view of products and the user could interact with it which would call that intercepting route opening the modal.
While it worked I noticed, when no filter is set, i.e. a lot of interactive cards are on screen (100 at minimum and a loadmore mechanic), the intercepting does take forever. thus making it unusable.
So I could see that it was directly related to the number of elements having a link with an intercepting route.
My question is - did I do something wrong? I.e. is this not meant for these kind of things? more like ONE intercepting route link for an ui panel or similar is the main use for it? I also had the route being dynamic to use params instead of searchparams.
the route was something like "app/[lng]/@modal/(.)media/[id]"
in the modal I just rendered the id. nothing more. so there was nothing going on. I ended up scratching it and just do my own modals as usual.
Beta Was this translation helpful? Give feedback.
All reactions