Replies: 1 comment 1 reply
-
If you are not scared of the word
Usually you do not have to think about it (except some complex cases). Just use
https://tanstack.com/query/v4/docs/guides/testing#set-cachetime-to-infinity-with-jest
All examples are written with typescript. You don't see too much typescript in there cause it |
Beta Was this translation helpful? Give feedback.
-
Hi! I am very interested in
vue-query
library and I am thinking of completely (or at least partially) migrating frompinia
. There are some points I have concerns about and which block me in terms of understanding the philosophy from the technical perspective:vue-query
(examples from the docs are too easy to understand all the cases)? For example, using the same query in many nested components, how to structure the queries with the API calls etc.jest
orvitest
. Such test cases are important: mocking (or using real instances?) the queries in the components, all possible and popular cases that happen during usual front-end developmentI will appreciate the answer! Thanks 👍🏻
Beta Was this translation helpful? Give feedback.
All reactions