-
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
bug in beta.21 #843
Comments
This is our number one bug. @theKashey it seems to be introduced by your render PR. |
@fwh1990 - so, as long you got a bug - you are the best person to track it down! 🏹
The problem is caused by #806. On each render, and pre-prender call each Component you use will compare some magical number. It will change when you execute a new portion of code (HRM, async-chunk, whatever). The question - why something got rendered, but next got unmounted. So - what I am asking about - just double check that your application and RHL is working. |
@theKashey I'm experiencing this issue too, it's being thrown on a ton of components. I don't fully understand all your points though...
I understand this point based on this.
As far as I could tell the loader still worked fine from a functionality standpoint, however maybe I'm missing something about this question.
I'm not sure what you mean by this, but...
Hope this helps. Not sure how much else I can dig into this but if needed I might be able to supply a reproducible example. Reverting to |
|
Yes, the unmounting is expected. Occurs when changing routes via
Yeah that would explain it. That sounds more like a "this package" issue rather than something a consumer of the package is doing wrong. |
Ok. So everything is OK, and we should just track the component state to suppress the warning. |
You may try to test |
Have the same problem. |
I'm using react-loadable@5.3.1 react-hot-loader@4.0.0-beta.19 is working nice. If react-hot-loader@4.0.0-beta.21:
If react-hot-loader@4.0.0-beta.20:
What can I do? |
@fnpen the second error is a different error. And look it is IS an error. Please provide more information. |
@theKashey I can make repo with code to help reproduce it. Do you need it? |
@fnpen - it will be just perfect. |
@theKashey https://github.com/fnpen/react-hot-loader-mount-bug Not working with clean create-react-app + react-hot-loader@4.0.0-beta.21. (without redux, router and etc.) Run |
🚀 |
Always true? Or need check change? |
Always true. AppContainer shall not decide how the application would work. |
Fixed in beta 22. |
@neoziro @theKashey thanks! |
@theKashey solved for example. But error exists in my app with redux / react-router. I will try extract the reason to my example. |
@fnpen - just share some sources. |
HotExportedAbout should synchronously flush the changes, but it doesn't do it. Just a few lines to debug. |
I've failed to find the reason about "Can only update" - should be ok in last beta, in case you dont get error with "cannot read children". |
I also have the same issue in beta.22 ("Can only update" but without the children error FallOutChonny has). React-hot-loader still works as expected, there are just these additional warnings. I've setup an example project with Please tell me if I can provide additional information/help. |
@cyrilwanner - thank you. Looking.... |
Ok, kudos to @cyrilwanner, not it's clear - HRM/RHL works very well. A bit more very than it should.
The ways to fix:
WIP. |
2 and 3 got implemented. |
webpack 3.10.0
babel 7.0-beta39
Rollback to beta-19 worked.
I don't know why it happened, no more code provide to you, sorry.
The text was updated successfully, but these errors were encountered: