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

fix: reload crashes the app #1020

Merged
merged 2 commits into from
Feb 10, 2025
Merged

fix: reload crashes the app #1020

merged 2 commits into from
Feb 10, 2025

Conversation

nahiyankhan
Copy link
Collaborator

@nahiyankhan nahiyankhan commented Feb 1, 2025

Reloads are crashing the app because it loses context on how to access the routes to load.
The fix appears is to use proper file protocol URL with correct base path in production.

@nahiyankhan nahiyankhan marked this pull request as ready for review February 4, 2025 19:29
})
.catch((err) => {
console.error('Failed to load window:', err);
// Try alternative path if first attempt fails
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this alternative more likely to work? If so, should we just use it as the only way we try to load the index.html? Feels like we should be able to know one that will work and use it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair! let me do a rev on this

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you were right - not needed. reload continues to work.

@baxen
Copy link
Collaborator

baxen commented Feb 7, 2025

Closes #881

@lily-de lily-de merged commit 54618e7 into main Feb 10, 2025
4 checks passed
@lily-de lily-de deleted the nahiyan/reload-crash branch February 10, 2025 19:08
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

Successfully merging this pull request may close these issues.

4 participants