Comments (2)
Interesting, that does indeed fix it!
Great news, but it feels like updated code examples that show how to test mutations would be very beneficial: a few of my colleagues at work already ran into this exact same issue and just abandoned or worked around the issue. I had a quick look, but I didn't immediately find any guidelines on testing in the documentation, am I missing the docs or are there simply none yet? I could rewrite and upgrade my example to be the start of the documentation for instance.
from query.
Does it work with await fixture.whenStable()
?
E.g.
mutation.mutateAsync()
await fixture.whenStable()
controller.expectOne(..)
from query.
Related Issues (20)
- Enabled exactOptionalPropertyTypes causes error when trying to use the optional selector HOT 1
- getNextPageParam throws an error when setting the data for an infinite query to empty lists for pages & pageParams
- Typescript error when await on global onSuccess mutation HOT 3
- Version 5.50 isn't on npm HOT 1
- eslint-plugin-query: skipToken breaks exhaustive queryKeys rule HOT 3
- JSDoc return type inference broken for useQuery/createQuery, but not for useMutation/createMutation HOT 1
- Svelte: passing a store to createQuery breaks types when using `select` HOT 2
- `useIsFetching` is reacting only to first static queryKey HOT 2
- QueryCache in QueryClient is not reflecting state changes inside onError callback HOT 1
- persisted queries are not removed from cache HOT 1
- `useSuspenseInfiniteQuery` does not create correct data HOT 1
- `vue-query` client `invalidateQueries` doesn't invalidate immediately HOT 9
- Query remains active even without any listeners HOT 3
- react-native resolve problem HOT 1
- Using refreshInterval and staleTime can cause refresh to only occur after refetchInterval + staleTime HOT 4
- `AbortSignal` does not fire when query errors out HOT 7
- typescript error querykey is missing
- export 'default' was not found error when library uses @tanstack/react-query HOT 1
- the `coverage` in `vite.config.ts` causes unbound breakpoints when debugging internal packages HOT 1
- QueryClient.clear does not trigger a rerender immediately 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.