Tanstack router with electron-vite-react #835
Unanswered
Aliwahid17
asked this question in
Q&A
Replies: 2 comments
-
Instead of https://tanstack.com/router/v1/docs/framework/react/guide/history-types#hash-routing |
Beta Was this translation helpful? Give feedback.
0 replies
-
All you have to do is create a // Create a memory history instance to initialize the router so it doesn't break when compiled:
const memoryHistory = createMemoryHistory({
initialEntries: ['/'] // Pass your initial url
})
// Create a new router instance
const router = createRouter({ routeTree, history: memoryHistory }) Check this page on the docs for more info. This is where I found the solution on Tanstack's discord channel. |
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'm working on an electron project but in dev everything is working fine but the build is not working.
Please 🙏 let me know how to fix that
Beta Was this translation helpful? Give feedback.
All reactions