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: remove import cycle in query handlers #11234

Merged
merged 1 commit into from Oct 23, 2023

Conversation

OrKoN
Copy link
Collaborator

@OrKoN OrKoN commented Oct 23, 2023

I could only think of a way to check using a symbol. This satisfies TypeScript, the runtime and does not cause cycles in the import graph.

@OrKoN OrKoN force-pushed the orkon/remove-aria-query-handler-cycle branch 2 times, most recently from ad496f6 to 76e6611 Compare October 23, 2023 14:04
I could only think of a way to check using a symbol.
This satisfies TypeScript, the runtime and does not cause
cycles in the import graph.
@OrKoN OrKoN force-pushed the orkon/remove-aria-query-handler-cycle branch from 76e6611 to c780dde Compare October 23, 2023 14:06
@OrKoN OrKoN enabled auto-merge (squash) October 23, 2023 14:07
Copy link
Collaborator

@Lightning00Blade Lightning00Blade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An other option would be this TypeScript Playground.
But I am not sure it's better the issue is you can not use x[Y] to narrow down a type, but with Symbol brackets are always needed.
TS issue is from 2016, main problem seems to be performance - microsoft/TypeScript#10530

@OrKoN OrKoN merged commit 954c75f into main Oct 23, 2023
52 checks passed
@OrKoN OrKoN deleted the orkon/remove-aria-query-handler-cycle branch October 23, 2023 15:21
@release-please release-please bot mentioned this pull request Oct 23, 2023
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.

None yet

2 participants