Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensure signature function don't share identity with stubs #505

Merged
merged 2 commits into from
Sep 13, 2021

Conversation

pmmmwh
Copy link
Owner

@pmmmwh pmmmwh commented Sep 13, 2021

Fixes #455
Fixes #489

By not using the signature function directly but instead making it a function returning that value fixes the case where the referential identity of the function is not updated even though the underlying runtime have been patched.

@pmmmwh pmmmwh force-pushed the fix/signature-function-identity branch from 74d962a to 62e93ba Compare September 13, 2021 22:03
@pmmmwh pmmmwh merged commit 61985e1 into main Sep 13, 2021
@pmmmwh pmmmwh deleted the fix/signature-function-identity branch September 13, 2021 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

First component loses state on first hot reload hot reloading not working for the first import of react
1 participant