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

[Improvement] - allow passing React Query's skipToken to add typesafe disabling of queries #252

Open
AronBe opened this issue May 19, 2024 · 0 comments

Comments

@AronBe
Copy link

AronBe commented May 19, 2024

TRPC and consequently React Query implemented skipToken to disable queries in "typesafe" way, basically dealing with enabled needing extra undefined handling.

https://tanstack.com/query/latest/docs/framework/react/guides/disabling-queries#typesafe-disabling-of-queries-using-skiptoken
https://trpc.io/docs/client/react/disabling-queries

trpc implementation
https://github.com/trpc/trpc/blob/5027209bc300d299224ecef764adeac09b8cab8d/packages/react-query/src/shared/hooks/createHooksInternal.tsx

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

No branches or pull requests

1 participant