How can I recognize history type ("WebHistory" or "WebHashHistory") of a router instance? #1858
-
I'm writing a utility which needs to perform different actions depending on the type of history. I logged a router instance to console, digged into Do we have any way to recognize that? |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Jun 5, 2023
Replies: 1 comment
-
There is no way to recognize this as history is instantiated outside of the router now. What you could do is let the user pass what version of the history they are using or take control over router creation to pass the options you want. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
posva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is no way to recognize this as history is instantiated outside of the router now. What you could do is let the user pass what version of the history they are using or take control over router creation to pass the options you want.