This repository was archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
How to support hot reload? #6
Comments
Just drop this into your
|
@jaredpalmer Thank you. Simple and useful. But when hot reload start, component state will be set to default state, how to resolve this problem? |
@jaredpalmer Unfortunately, this will cause a compilation error since the latest typings for node don't include a |
Just add @types/webpack-env |
|
or you can use |
Maybe you're looking for this, since you mentioned losing state |
Hot reload doesn't work for me. I have opened new issue. |
In index.tsx:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This project is useful, but how to use hot reload?
The text was updated successfully, but these errors were encountered: