Comments (10)
In the example a query is created just by supplying a queryKey. Currently queryFn is not optional when creating a query.
from query.
from query.
I suppose DefaultQueryFunction example is one of the reasons we would want an additional overload.
from query.
That's not related. I was referring to the useQuery function.
from query.
That's correct.
from query.
We need this one, I guess. We need to check the others.
from query.
Only reason I could think off for making queryKey param also optional is that we can provide it through queryHash prop of the options object.
from query.
Want to do this? I can take this one.
from query.
I already did it. Do you want to take another issue?
from query.
Sure. Which one?
from query.
Related Issues (20)
- SSR snippets outdated? HOT 1
- provideQueryClientOptions changes behaviour of queries even when not changing any default properties HOT 2
- Add `mapResultsData` operator to `README.md` and the playground
- TanStack Query v5 support HOT 8
- Missing type for the returned observable in `base-query`
- Support an observable in queryFn like we had in v1 HOT 1
- Sync `mutate` function is missing the mutation options as parameter HOT 4
- Break the object reference of the result returned by the base query/mutation HOT 3
- DevTools Not Showing Queries After Updating from 2.0.0-beta.7 to 2.0.0-beta.8 HOT 2
- Cannot find module '@tanstack/query-core/build/legacy/queryClient-b7fce2ff' HOT 2
- Export MutationResult and CreateMutationOptions
- Auto Refetching example playground HOT 3
- Placeholder data example
- After an unsubscribe on result$ mutation, mutation is no longer working HOT 9
- Optimistic updates example doesn't work HOT 2
- Documentation navigation menu doesn't open on mobile HOT 1
- `refetchOnWindowFocus` in module's providers doesn't have any effect HOT 2
- Allow to pass observable as state keys HOT 5
- Add mapResultsData operator
- Allow constructor injection for QueryClientService HOT 6
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.