Closed JudahGabriel closed 1 year ago
Im getting this on the repro:
Ah I think its because onPopState we call navigate which then calls pushState 🤦♂️i can investigate some more tomorrow, or im happy to take a pr in the meantime
Thanks, I wondered if that is indeed the issue. Let me try preventing a pushState call on popState callback and see if that fixes it.
Yep, you're right. I updated the repro so that the code skips calling pushState when popState has been called. This fixes the issue.
I'll submit a PR momentarily.
OK! Opened this PR which fixes the issue.
I've found a bug in the Router where if you navigate backwards two or more times, it'll never navigate to the previous page.
Minimal repro here (and source here).
Repro steps:
I don't yet know the source of the bug, but I'd be glad to submit a PR if you're willing to accept it.