-
Notifications
You must be signed in to change notification settings - Fork 801
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
[v4] Page reloads every second component change (Redux connected) #820
Comments
@rusty3, you made my day. |
Fixed in 4.0.0-beta.18. |
Was this error somehow reintroduced? I'm seeing this exact behaviour and error with 4.3.2. All I did was exactly what is documented in the readme. It's a big application with a small (lazy loaded) react part, so it might be something in my general setup. But it is strange that it works on the first change but mot the second. |
@eXaminator - any error in console, especially with |
@eXaminator I am having the problem too! My app is much more simple, I followed the documentation and every second component change I get a fullscreen reload.. I tried installing 4.0.0-beta.18 to see if it would help but no luck... My console when doing a successful hot reload::
and when doing an unsuccessful one:
|
I'm on a trip right now, so I'll check once I'm back at work in about a
week!
meds <[email protected]> schrieb am Fr., 15. Juni 2018, 08:21:
… @eXaminator <https://github.com/eXaminator> I am having the problem too!
My app is much more simple, I followed the documentation and every second
component change I get a fullscreen reload..
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#820 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACoY_ObsZGt1WhH1_KaNE3zbo4f-CE4-ks5t82BIgaJpZM4Rsqru>
.
|
Hey! Don't use RHL 4.0 beta versions - install the latest one! |
I found the cause of the problem in my case, in app.tsx I was initializing firebase in the global scope. When I moved it into 'onComponentDidMount()' my issue was resolved. |
Having the same problem. Any suggestions would definitely be appreciated. |
@njgraf512 -using the latest version? |
Description
This issue is happening on a bare setup with latest React Hot Loader V4 when updating Redux connected component.
Expected behaviour
Component should be updated without page reload.
Actual behaviour
Component is hot updated on the FIRST change, however every second change the following errors happen and the page is reloaded.
[HMR] Cannot apply update. Need to do a full reload!
[HMR] Error: Aborted because ./src/ConnectedContainer.js is not accepted
...
Environment
React Hot Loader version: v4 (latest beta 17)
node v8.9.1
npm 5.6.0
OS: macOS Sierra 10.12.6
Browser: Chrome Version 63.0.3239.132 (Official Build) (64-bit)
Reproducible Demo
https://github.com/rusty3/react-hot-loader-redux-connect-issue
The text was updated successfully, but these errors were encountered: