Skip to content

nested route updates #780

Answered by developit
TreetopFlyer asked this question in Q&A
Jul 23, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Yeah, this one is tricky, and currently it's "working as designed". We need to fully replace routes when navigating in order to allow for the routes to potentially suspend - and we can't really know in advance whether they will or won't do so.

IIRC most of the other routers work this way, preact-router was sortof on its own. I don't know what the right answer is though, ideally we would provide a way to configure if you want shared routes to remount or simply update.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TreetopFlyer
Comment options

Answer selected by TreetopFlyer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants