-
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
[HMR] unexpected require(./src/__generated__/AppQuery.graphql.js) from disposed module ./src/App.js #1032
Comments
Update: hot reloading seems to be working well. I get this warning in general, though, for various relay queries that got compiled by the relay compiler into the form above, with the |
The problem - hot reloading is not "complete", a few things left unreplaced. |
@theKashey thanks for your response. Yes, I've observed sometimes some old code is left unreplaced after a reload. It seems like a reload replaces code, but then code that was replaced by a prior reload gets "unreplaced." It's odd. I'm still observing it as I develop. I do get the "unexpected require($relayQuery) from disposed module" warning not just for the hot App module but for modules in general that have these Relay compiler requires. Anyway, this current setup is still a big improvement for me over my 3.0.0 configuration, which wasn't configured properly to retain state. Wondering what the issue is though. |
In short - we are not reflecting some changes made in class constructors. |
Is that a problem or should I close the issue? |
2018-07-14T19:27:18.684Z] [info] Bitcoin.com Wallet v4.12.2 #bc326e8 |
gotoon |
[HMR] unexpected require(./src/generated/AppQuery.graphql.js) from disposed module ./src/App.js #1032 |
It seems to be working very well. Thank you. |
@dminkovsky - that is a problem, and we have an issue to track it - #1024 |
我遇到了同样的问题 |
@theKashey Haha! I updated to v3 at around the same time it reached its end too :). Very good. Makes sense, thank you again. It's been very fun seeing individual functions swapped out. |
I am using react-hot-loader 4.3.3. When my application reloads, I am warned:
My
index.js
andApp.js
are set up per the README.Apart for the warnings, the reload seems to work:
But what is the warning about? Is something not working?
The require it's warning about is declared like this (inside
App.js
, it is output from the Relay compiler):The warning is thrown at:
For some reason
me.hot.active
is nottrue
for theApp.js
module.I tried including the Relay compiler before and after the hot loader plugin, but it made no difference.
Expected behavior
What you think should happen:
I shouldn't have warnings and everything should work :)
Environment
React Hot Loader version: 4.3.3
Run these commands in the project folder and fill in their results:
node -v
: 8.2.1npm -v
: 5.3.0Then, specify:
The text was updated successfully, but these errors were encountered: