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

Handle ChunkLoadError better #2187

Merged
merged 3 commits into from
Nov 5, 2020
Merged

Handle ChunkLoadError better #2187

merged 3 commits into from
Nov 5, 2020

Conversation

Twixes
Copy link
Collaborator

@Twixes Twixes commented Nov 3, 2020

Changes

This should stop ChunkLoadError (which seems to happen when a user doesn't do a full page reload including assets after we redeploy the app) from spamming our Sentry issues list.

@timgl timgl temporarily deployed to posthog-fix-chunk-load--x8eke4 November 3, 2020 10:24 Inactive
@Twixes Twixes temporarily deployed to posthog-fix-chunk-load--x8eke4 November 3, 2020 10:36 Inactive
@Twixes Twixes temporarily deployed to posthog-fix-chunk-load--x8eke4 November 3, 2020 10:38 Inactive
@timgl
Copy link
Collaborator

timgl commented Nov 4, 2020

I'm not sure this actually fixes the issue from a users point of view, I think people still tend to get stuck until they hard-refresh. Have you been able to reproduce that?

@Twixes
Copy link
Collaborator Author

Twixes commented Nov 4, 2020

This does the hard refresh for them though. Not sure I understand how they get stuck?

@mariusandra mariusandra merged commit 4707fe8 into master Nov 5, 2020
@mariusandra mariusandra deleted the fix-chunk-load-error branch November 5, 2020 09:55
@mariusandra
Copy link
Collaborator

@timgl if I understand correctly, the fix I did a long time ago still refreshes the page for the users, yet we threw the error into sentry regardless. Now the error is swallowed if we handle it.

I tried locally - started webpack and closed it, then opened another page from the sidebar. The page refreshed.

@timgl
Copy link
Collaborator

timgl commented Nov 5, 2020

@mariusandra Perfect!

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.

None yet

3 participants