You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes: https://github.com/unnoq/orpc/issues/495
Alternative: https://github.com/unnoq/orpc/pull/496
- [x] react
- [x] vue
- [x] solid
- [x] svelte
- [x] docs
Co-authored-by: Louis Haftmann
<30736553+LouisHaftmann@users.noreply.github.com>
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
## Summary by CodeRabbit
- **New Features**
- Added support for using `skipToken` to conditionally disable queries
in React, Solid, Svelte, and Vue Query integrations.
- Documentation updated to explain how to use `skipToken` for disabling
queries.
- **Bug Fixes**
- Queries now properly prevent execution and fetching when `skipToken`
is used as input.
- **Tests**
- Expanded and updated test suites across all supported frameworks to
verify correct behavior and typing when using `skipToken`.
- Added new tests ensuring queries remain pending and do not fetch when
`skipToken` is used.
- **Documentation**
- Improved guides and examples for disabling queries using `skipToken`.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
You can still use [skipToken](https://tanstack.com/query/latest/docs/framework/react/guides/disabling-queries/#typesafe-disabling-of-queries-using-skiptoken) by conditionally overriding the `queryFn` property:
0 commit comments