Comments (2)
Technically you could set initialData to your data and then set the staleTime to something ridiculous. Then your data will never refresh and always pull from the cache.
from react-query.
Thanks for the tip.
Looks like I can also use manual: true
as well.
from react-query.
Related Issues (20)
- No QueryClient set, use QueryClientProvider to set one HOT 2
- vue-query suspense always throws render errors
- `result` parameter in `combine` function in `useQueries` initially empty array HOT 1
- useInfiniteQuery not being refetch on param change HOT 5
- solid-query modifies query data on refetch before suspense triggers
- Cannot read property 'prototype' of undefined when declaring `new QueryClient()` on React Native HOT 9
- useInfiniteQuery `data.pageParams` is always unknown type HOT 6
- Upgrading 5.15.0 -> 5.17.0 causes severe lag when switching from specific route to another HOT 5
- When used in conjunction with the latest version of "[email protected]," there may be an error.
- Angular Query: type narrowing not working on query and mutation result HOT 3
- handling error in QueryCache with suspense query together, error throwing is inconsistent. HOT 1
- Calling useQueries with an empty array leads to unlimited rerenders with the latest version of query HOT 2
- Using state inside `combine` function uses previous value HOT 2
- NPM: eslint-plugin-query v4.38 tagged as latest HOT 2
- Optional Suspense Support in React-Query Hooks
- Font size is unusably small on v5 query inspector HOT 3
- [vue-query] Nuxt2 SSR demo not working as expected HOT 3
- 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
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 react-query.