Comments (2)
🎉 useQuery.onSuccess/onError
added in version 0.3.2
from query.
The onError and related useQuery event handlers should be pretty easy to do. The mutate handler, I agree that it's simple enough just to rely on the promise of the mutate
function. I think it's better control flow there tbh.
from query.
Related Issues (20)
- Svelte Example: Playground is broken in docs
- What about Svelte 5? HOT 1
- `gcTime` is not working or, better, is useless if we use `persister` HOT 2
- #initialState set incorrectly to persisted state HOT 2
- Unit test for useMutation hook 's can't be mocked to run onError callback
- isFetchingNextPage is not always true in the next render cycle after fetchNextPage is called HOT 5
- Reload browser breaks garbage collection HOT 2
- `clear()` function does not clear the cache HOT 1
- not get data when log brower, but state in tanstack-query still here
- ReactQueryDevtoolsPanel is not exported from "@tanstack/react-query-devtools" or the docs are wrong HOT 2
- pageParam missing from default queryFn typescript definition HOT 3
- useIsMutating hangs application HOT 2
- <useSuspenseQuery> queryClient?: QueryClient cause infinite loop HOT 2
- unexpected caching when `queryKey` is undefined HOT 5
- useQueries returns error if provided array is empty HOT 2
- Don't work with Next.js 14.1.0 HOT 11
- useQuery not reflecting updated queryFn while refetching after queryKey Invalidation HOT 2
- ReactQueryStreamedHydration hydrated does not properly escape </script> HOT 1
- placeholderData with keepPreviousData doesn't work HOT 1
- [v4] Disallow undefined queryFn return in types HOT 3
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.