-
Notifications
You must be signed in to change notification settings - Fork 798
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
Add an errorReporter option to the hot() HOC factory #811
Comments
We will deprecate But we need to check deeply the behaviour you experienced. Maybe |
Should. But it is easy to reproduce the problem and found out the problem. |
If |
You are right. If error boundary will be "above" the AppContainer - it will be notified about an error, but not about HRM event, as long this is just different things. There are two ways to solve
|
Ok, I've found a problem with error and open an PR to fix it. |
About errorBoundaries - @neoziro just proposed in another issue, to place it just after AppContainer. Should work for any case (after PR to swallow error got merged) |
Documented in v4.0.0-beta.17. |
If you add an
errorReporter
option tohot()
, that can be passed on to the<AppContainer>
rendered by the HOC it creates.I've already done this locally to test it out (along with a local change to react-hot-loader-loader to support configuring
errorReporter
via Webpack rule options): 0e384bbThe text was updated successfully, but these errors were encountered: