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

Refactor setGlobalContext into a function to remove cyclic depedency #353

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

chiragpat
Copy link
Contributor

Why

Currently the delegates.ts and renderComponent/index.ts files have a cyclic depedency. This causes issues in node like environments where depending on the ordering of the requires in the cycle the module ends up. being an empty object.

How

  • Refactor the setGlobalContext call into a separate function
  • Move the sideeffect based setGlobalContext to renderComponent/index.ts which remove the cyclic dependency

@pzuraq pzuraq merged commit 6c30df5 into glimmerjs:master Jun 16, 2021
@pzuraq pzuraq added the bug label Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants