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 isComponent types #1404

Merged
merged 2 commits into from
Jun 6, 2023
Merged

Conversation

gitKrystan
Copy link
Collaborator

@gitKrystan gitKrystan commented Jun 6, 2023

AFAICT this change from #1382 is incorrect but coincidentally works because owner is truthy.

It appears that getInternalComponentManager's signature is (definition: object, isOptional?: true | undefined) => InternalComponentManager | null and has been for a while:

https://github.com/glimmerjs/glimmer-vm/blob/14413355ef6b48c1ab416a91fb7ff950cf8511d8/packages/%40glimmer/manager/lib/internal/index.ts#L177-L211

This issue was exposed by #1389

@NullVoxPopuli
Copy link
Sponsor Collaborator

Thanks for fixing this -- this issue really puzzled me in #1382

@MelSumner MelSumner merged commit 92392b1 into emberjs:master Jun 6, 2023
13 checks passed
@gitKrystan gitKrystan deleted the fix-is-component branch June 6, 2023 17:11
@MelSumner MelSumner added the bug label Jun 9, 2023
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

3 participants