Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use hash history (rather than default browser history) #75

Open
gmaclennan opened this issue Dec 19, 2024 · 0 comments
Open

Use hash history (rather than default browser history) #75

gmaclennan opened this issue Dec 19, 2024 · 0 comments
Assignees

Comments

@gmaclennan
Copy link
Member

Currently we don't pass opts.history to create router, which means that it creates a default BrowserHistory instance. This works in dev because we run the vite dev server, which redirects everything to /index.html, however in production we don't run a server and just read index.html from a file route. This means that reloading the page and loading a persisted route will not work. We should use hash history instead to avoid this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants