gaearon / gaearon/react-hot-loader

Props change causes time traveling

Open
#1,364 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.2k
Forks
775
PR merge metrics
No merged PRs in 30d

Description

A few weeks ago, RHL was patched to fix some inconsistant state change issues. For a while, this patch fixed my issues, but now it appears the same issue(s) has/have arisen again.

**Summary:** After changing component props, the component will not update to reflect the changed props. Following this, any future change, including whitespace, causes an update. After that, a future change identical to the first state forces the component to revert to the first version. However, any full page reload does reflect the correct component state (with the right props).

Any suggestions for culprits or how to debug this is appreciated.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.