-
-
Notifications
You must be signed in to change notification settings - Fork 683
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
Routing not working for very simple case #3368
Comments
Ok, so I was able to get the page routing working by putting a simple "counter" on one of the pages. It seems that if there is no reactive code then the whole runtime doesn't load. |
It couldn't be this, because the router itself is full of reactive code, but this does make sense in light of what the actual solution was here. This bug was due to an interesting corner case involving the confluence of three things:
Adding a counter presumably prevented the relevant part of the UI from counting as "inert" and so removed that optimization, or it changed the structure of one of the pages and therefore the type, removing the other optimization — either one, or PR #3370, should fix it. |
Describe the bug
I have what seems to me a pretty simple routing setup but the routing does not happen. The URL is set up correctly and if I click in the browser bar and press enter, the page goes to the right location but the application does not do this move by itself, it only changes the URL. I'm running the code under
trunk serve
. I have trieda
tags andA
tags but neither worked.Leptos Dependencies
To Reproduce
Steps to reproduce the behavior:
trunk serve --open
Expected behavior
The page should go to the new location and load that page when the link is clicked.
Additional context
The code in question is here. It is part of a larger workspace and if someone wants to try it out, there is a
devcontainer
configuration that should run right in Github (codespaces) if desired.The text was updated successfully, but these errors were encountered: