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: LoadableComponentErrorBoundary should be used in prod, not in dev #1429

Merged
merged 2 commits into from
Apr 9, 2021

Conversation

Gnito
Copy link
Contributor

@Gnito Gnito commented Apr 9, 2021

LoadableComponentErrorBoundary helps in situations, where production build changes in the server and long-living client app tries to fetch code chunks that don't exist anymore.

Note: in development mode with Hot Module Reloading (HMR) in use, this can actually cause error loops with message:
"React will try to recreate this component tree from scratch using the error boundary you provided"

@Gnito Gnito force-pushed the fix-loadablecomponenterrorboundary branch from 6909e72 to f9a199e Compare April 9, 2021 12:10
@Gnito Gnito requested a review from OtterleyW April 9, 2021 12:10
Copy link
Contributor

@OtterleyW OtterleyW left a comment

Choose a reason for hiding this comment

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

👍

@Gnito Gnito merged commit 495ff08 into master Apr 9, 2021
@Gnito Gnito deleted the fix-loadablecomponenterrorboundary branch April 9, 2021 12:36
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.

2 participants