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 current
Expected behavior
expected to get current route
Screenshots

Environment:
- Yew version: [
master]
- Rust version: [
1.55]
- Target, if relevant: -
- Build tool, if relevant: -
- OS, if relevant: -
- Browser and version, if relevant: -
Questionnaire
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 Xand X is previous route instead of currentExpected behavior
expected to get current route
Screenshots

Environment:
master]1.55]Questionnaire