Replies: 4 comments
-
Is it possible to use HashRouter in framework mode? I want to use the file-based routing to make things consistent between my web apps and desktop apps. But I can't seem to get HashRouter working in framework mode with Electron. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I use HashRouter in my electron app on v7 and have had no issues. I consider that use case "unless you absolutely have to" since we don't have control and the users don't interact with the location directly. |
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
-
I am trying to port a webpage to electron which uses BrowserRouter
this fails with "[react-router] Location "/path/to/index.html" did not match any routes"
which seems to be a common issue:
https://stackoverflow.com/questions/36505404/how-to-use-react-router-with-electron
workaround people have came up with seems to be to use HashRouter instead. However documentation says "We strongly recommend you do not use HashRouter unless you absolutely have to" without any further context.
So I would like to get information about:
Beta Was this translation helpful? Give feedback.
All reactions