Skip to content

yew_router::attach_route_listener Event listener provides previuos route instead of current #2116

@voidpumpkin

Description

@voidpumpkin

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
fixed2

Environment:

  • Yew version: [master]
  • Rust version: [1.55]
  • Target, if relevant: -
  • Build tool, if relevant: -
  • OS, if relevant: -
  • Browser and version, if relevant: -

Questionnaire

  • I'm interested in fixing this myself but don't know where to start
  • I would like to fix and I have a solution
  • I don't have time to fix this right now, but maybe later

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions