Skip to content

fix: break circular reference between split and split-area #453

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

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

Harpush
Copy link
Collaborator

@Harpush Harpush commented Aug 27, 2024

When using jest for testing circular references are not allowed (while they are allowed for ng build and karma testing).
The origin of the circularity is SplitComponent referencing using contentChildren the SplitAreaComponent while SplitAreaComponent also injects SplitComponent.
To break the circular reference - an injection token is introduced to allow type only import of SplitAreaComponent.

Related to: #441 (comment)

@Jefiozie Jefiozie merged commit 5020076 into angular-split:main Aug 30, 2024
4 of 5 checks passed
@Harpush Harpush deleted the fix-circular-reference branch August 30, 2024 22:57
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.

3 participants