Replies: 1 comment
-
same discussion in react-router repo |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug or question
SingleSPA emits additional custom popstate event https://single-spa.js.org/docs/api/#popstateevent
which causes react router view transitions to blink on mount.
The following code removes the bug, but does not allow to sync router with history.
To Reproduce
I don't have repo which I can share at the moment, but maybe later.
Expected behavior
Well, SingleSPA should not affect other tools/features and modify default browser behaviour.
But it would be good to have a way to tell ReactRouter to ignore SingleSPA's popstate.
The following code can check that popstate is from SingleSPA, but I don't know how to stop ReactRouter from receiving it
Given ReactRouter team will likely just close such issue, I hope to try something here.
Let me know if you encountered and solved this.
Beta Was this translation helpful? Give feedback.
All reactions