Suspend component when routing to another page (instead of unmounting it) #10256
Unanswered
parmindersk
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
React 18 and React Router v6.
When navigating from one page to another we want to suspend the current page instead of unmounting it and preserving its state, so that when we go to the previous page (back), the page loads instantaneously.
Is there a way to achieve this with React 18 and React router v6?
The behavior we're looking to emulate is in the Azure portal. Going back and forth between pages is instantaneous.
We looked at Offscreen (Activity) but it's still under research.
Any pointers?
Beta Was this translation helpful? Give feedback.
All reactions