Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent loss of state when transitioning #10

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

EECOLOR
Copy link
Member

@EECOLOR EECOLOR commented Sep 20, 2022

In the previous example state was lost because the render tree changed, resulting in an unmount/mount.

While moving the StaticLocationProvider to the outside fixes the problem it has the side effect of not being able to navigate from any of its children. The StaticLocationProvider was updated to allow for navigation if the location is equal to the current location.

@EECOLOR EECOLOR requested a review from peeke September 20, 2022 11:59
src/routing.js Show resolved Hide resolved
@EECOLOR EECOLOR merged commit f544618 into master Oct 25, 2023
@EECOLOR EECOLOR deleted the static-navigation-losing-state branch October 25, 2023 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants