I'm a beginner with emotion and react fast refresh, I found that emotion doesn't work well with react-refresh.
The input data should not be clear after hot update, it annoyed me when I want to develop something.
I also tried styled-components(babel-plugin-styled-components), it works nicely.
Current behavior:
Input data is gone after hot update.
To reproduce:
https://github.com/lightyen/emotion-react-refresh-demo
Expected behavior:
Input data keep the same value after hot update.
Environment information:
Described in demo repo.
I'm a beginner with emotion and react fast refresh, I found that emotion doesn't work well with react-refresh.
The input data should not be clear after hot update, it annoyed me when I want to develop something.
I also tried styled-components(babel-plugin-styled-components), it works nicely.
Current behavior:
Input data is gone after hot update.
To reproduce:
https://github.com/lightyen/emotion-react-refresh-demo
Expected behavior:
Input data keep the same value after hot update.
Environment information:
Described in demo repo.