Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

fix: React-Hot-Loader compatibility #522

Merged
merged 1 commit into from
Aug 10, 2018
Merged

Conversation

theKashey
Copy link
Contributor

Source issue: #500.

Just changing createSymbol to behave like pure function and return the same result for the same arguments.
As a result - after hot class update .state and .props refers the same underlaying objects.
Before - RHL did not work due to runtime error, as long .state was undefined for a while.

@mweststrate
Copy link
Member

Thanks!

@theKashey
Copy link
Contributor Author

That PR was a bit incomplete :)

@github-actions github-actions bot mentioned this pull request Oct 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants