-
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
App is up to date,but not work (I've spent more than ten hours,help me) #1470
Comments
what the happen ? Is there anything I need to do? please |
Try:
|
I have tried,But it doesn't work. |
Thanks for your help. Is there anything else I can do? |
remove react-hot-loader/babel and webpack alias :@hot-loader/react-dom , The page can be partially refreshed,But the state is missing,The experience is so bad, I think I still have a problem with another pure Typescript project |
Try others solutions listed here - #1453 |
thank you ! I'll watch it now ,In other projects, I didn't have a problem with it, it was very easy to use React -hot-loader |
That's why it's not so easy to help you. Like it should work, and if it doesn't - 🤷♂️😭 |
In some cases, the app is up to Date, but the interface is not updated. After I change the state, the interface is updated accordingly. What is the problem? |
url:https://github.com/JinJieTan/mingyuanyun-fd-template |
I have exactly same problem with the latest version. Any idea? |
|
The problem here but there is actually no plans to continue React-Hot-Loader development, it could be replaced by Refresh today. |
https://github.com/JinJieTan/mingyuanyun-fd-template, I have already solved the problem, but in another project again this question, I have dealt with for a week, haven't solved |
I have found the problem, could you please help me have a look at it? It is this file. When I change to other files, it can work as normal hot update
|
I can be sure that my configuration is fine, because in this project, some of my components can, again, be introduced lazily, but some of the TSX components mixed with JS cannot be hot-updated |
All problems are solved, because I react life cycle using the arrow function, so did not respond to a hot update, recommend use my warehouse to implement hot update: https://github.com/JinJieTan/mingyuanyun-fd-template, thank you! |
component={() => {
return (
<PropertyContractContractDetail
params={params}
route={match}
location={location}
history={history}
/>
);
}} 👆 that is very bad. A full update on every update. pretty sure you wanted to use |
The problem is not here, in Render and componentDidmount |
There as well 😉. Might be another problem, but still a problem. |
Thanks, React -hot-loader 666, that's great |
in another pure Typescript project, I succeeded,However, in this javascript & Typescript project, I failed. App is up to Date, but the page doesn't change
It means that I:
Everything seems to be working fine,, but the page doesn't change .
webpack.base.concig.js
webpack.dev.config.js
scripts:
index.tsx :
app.tsx:
package.json :
tsconfig.json
The text was updated successfully, but these errors were encountered: