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: runtime injection issues #140

Merged
merged 4 commits into from
Jul 12, 2020
Merged

fix: runtime injection issues #140

merged 4 commits into from
Jul 12, 2020

Conversation

pmmmwh
Copy link
Owner

@pmmmwh pmmmwh commented Jul 12, 2020

This PR fixes most of the issues that was a result of #129.

An underlying issue was that Babel-injected helpers were calling the parent module's refresh.cleanup function, thus breaking the encapsulation of the refresh runtime and led to nondeterministic behaviour. A expplicit init step is added to the runtime global to ensure that each module can only call it's own cleanup function.

Fixes #120
Fixes #136
Fixes #138

@pmmmwh pmmmwh added the bug Something isn't working label Jul 12, 2020
@pmmmwh pmmmwh self-assigned this Jul 12, 2020
@pmmmwh pmmmwh merged commit aecdf79 into main Jul 12, 2020
@pmmmwh pmmmwh deleted the fix/runtime branch July 12, 2020 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant