Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants