-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
yew_router::attach_route_listener Event listener provides previuos route instead of current #2116
Comments
I have encountered this problem a couple days ago as well. The root cause of this problem is that This can be mitigated by using This can be fixed by making current route to be provided as a context value instead of held in a This is the approach that I have updated the proposal in #2113 to make |
@futursolo let me know how I can help with providing the needed changes. I saw you have most of it done in your PR? |
@voidpumpkin Thank you. For now I am trying to get #2107 landed so I can continue working on it as my fork has changes in this PR on master. |
Fixed by #2118 |
Problem
yew_router::attach_route_listener Event listener provides previuos route isntead of current
Originally noticed in #2109
Steps To Reproduce
Steps to reproduce the behavior:
Use this repo: https://github.com/voidpumpkin/yew-playground/tree/stale-agents
Everytime you click a link, console shows
got X
and X is previous route instead of currentExpected behavior
expected to get current route
Screenshots
Environment:
master
]1.55
]Questionnaire
The text was updated successfully, but these errors were encountered: