Comments (6)
I found a fix, pull request incoming
from query.
Thanks for the quick fix. Great feature btw! Well done 👏
from query.
@Jaaneek can you take a look here? I'm afraid I'm no expert with the userQueries
typings 😅
from query.
Looking into it!
from query.
@vjee quick fix is to add "as const" after queries array.
queries: [
{ queryKey: ["withSkipToken"], queryFn: true ? () => 1 : skipToken },
] as const
For some reason typescript doesnt make the array "readonly" by default when passing skipToken @TkDodo
I'm looking for a solution that wouldn't require the "as const"
from query.
Seems like some other tests are failing once thix is fixed.
Can't find a good solution at this moment.
Feel free to contribute anyone!
temporary fix is add as const
queries: [
{ queryKey: ["withSkipToken"], queryFn: true ? () => 1 : skipToken },
] as const
from query.
Related Issues (20)
- angular-adapter: does not re-render ui on signal changes HOT 1
- React Native, pnpm: Unable to resolve module @tanstack/query-core HOT 2
- Codemod for other (non-react) supported frameworks HOT 1
- queryClient.getQueryCache is not a function at ReactQueryDevtoolsPanel2 HOT 1
- [solid-query] Using data in a show causes double-rendering after a transition HOT 1
- refetch returning stale data HOT 3
- react query dev tools has a black text color in dark mode HOT 1
- experimental_createPersister is not cleaning up after itself HOT 1
- [v4] Mutation Filters - mutation variables are missing from "options" HOT 1
- keepPreviousData doesn't work with useQueries HOT 1
- Devtools incorrectly assume the staleTime from a disabled query HOT 3
- passing queryFn: skipToken and enabled: true triggers onError of queryClient.queryCache HOT 1
- useMutation - throwOnError triggering on each render HOT 3
- docs: type error in react native example
- pageParams is inferred as unknown[] in the cache for infinite querys HOT 2
- Type 'void' is not assignable to type '{ user: Partial<User>; }' HOT 2
- exhaustive-deps doesn't understand function call for query key HOT 4
- Solid Query error triggers ErrorBoundary in Astro but not in SolidJS
- Can't test Query mutations using Angular's HttpTestingController HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from query.