-
Notifications
You must be signed in to change notification settings - Fork 792
Closed
Labels
Description
Description
React component state gets lost when jsx tag below gets removed, when one above gets removed it works fine.
Steps:
- fetch demo repo: https://github.com/hoschi/bare-minimum-react-hot-rr4-redux/tree/loosing-state
- start dev server and open site in browser: http://localhost:8080/page3
- use spinner to change number to e.g. 6, which is saved in component state of Page1
Expected behavior
- remove 'above': value of in put should be still '6'
- remove 'below': value of in put should be still '6'
Actual behavior
- remove 'above': value of in put is still '6' (works)
- remove 'below': value of in put is '1' (doesn't work)
Environment
React Hot Loader version: 3.0.0-beta.6
https://github.com/hoschi/bare-minimum-react-hot-rr4-redux/blob/559a9bfce52d97fa48a314f404e8255f74ec81d5/package.json#L19
Run these commands in the project folder and fill in their results:
node -v: 6.3.1npm -v: 3.10.3
Then, specify:
- Operating system: Linux (Arch)
- Browser and version: Chrome, 56.0.2924.87 (64-bit)
Reproducible Demo
https://github.com/hoschi/bare-minimum-react-hot-rr4-redux/tree/loosing-state
MarkusLanger and franklinDev