Skip to content

React component state gets lost when jsx tag below gets removed #546

@hoschi

Description

@hoschi

Description

React component state gets lost when jsx tag below gets removed, when one above gets removed it works fine.

Steps:

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:

  1. node -v: 6.3.1
  2. npm -v: 3.10.3

Then, specify:

  1. Operating system: Linux (Arch)
  2. 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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions