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

Loaders for all routes reload on any navigation #1

Closed
gbj opened this issue Oct 9, 2022 · 2 comments
Closed

Loaders for all routes reload on any navigation #1

gbj opened this issue Oct 9, 2022 · 2 comments
Labels

Comments

@gbj
Copy link
Collaborator

gbj commented Oct 9, 2022

See router example. Contacts list should never reload, but reloads when any navigation happens.

@gbj gbj added the Router label Oct 9, 2022
@gbj
Copy link
Collaborator Author

gbj commented Oct 9, 2022

The problem is actually that the router is re-running the root element over and over. See https://github.com/gbj/leptos/blob/3638f488c9df00ad2cc796fd33995504ecef7e39/router/src/components/routes.rs#L132-L140

gbj added a commit that referenced this issue Oct 9, 2022
@gbj
Copy link
Collaborator Author

gbj commented Oct 9, 2022

Closed by b6cdf43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant