I'm using react query in my react native app with the following configuration : Stale Time = 3 minutes Cache Time = 5 minutes But the problem is that i need to get data from cache if there is no internet even if 24 hours passed. But with my configuration data is being deleted from cache After 5 minutes. I need to keep this configuration for online mode but if there is no internet i want to to keep data and get it from cache. Please any solution for this Thanks
Using react query differently in online and offline mode
43 Views Asked by Zero0 At
0
There are 0 best solutions below
Related Questions in REACTJS
- ussd reader in Recket Native module
- Teams tab application returns SSO error in mobile Outlook
- Github Pages Deployment deploys a blank page
- Is there any way to glow this bulb image like a real light bulb
- Optimize LCP ReactJs
- Page in React only renders elements after refreshing
- Unable to Post Form Data to MongoDB because of picturepath
- MERN Stack App - User Avatar Upload - 500 Error After Deployment on Render
- Hooks are not supported inside an async component error in nextjs project using useQuery
- How to change the Font Weight of a SelectValue component in React when a SelectItem is selected?
- On the server side, it returns undefined but on the client side, logs the values no problem
- Multilevel dropdown with checkboxes in Select component
- TypeScript Error only on big type only when assigned to a variable
- Deployment through app engine, cloud sql database, problem connecting with server code, doesn't connect
- Data is not filtering in props. Showing passdata.map is not a function
Related Questions in REACT-NATIVE
- ussd reader in Recket Native module
- I can't make TextInput to auto expand properly in Android
- expo config plugin use import instead of require
- Custom Sound for Expo Push Notifications Only Works in Foreground
- run RTK dispatch on gesture start with React Native
- Should I set Back-End for my React Native application?
- using infoPlist in app.json for expo project seems to not be working
- Anyone have success configuring react-native-home-indicator?
- KeyboardAvoidingView makes a messy the flexbox
- I am getting lots of errors when building react native app in Xcode
- Search and highlight text of current text in PDFKit Swift
- Flatlist Sometimes Capped at 10 Items Bug
- Is there any way to page transition in react native (stack navigation)
- Screen inside Stack.Navigator not visible in React-Native
- React Native stopwatch implementation slow on iOS
Related Questions in REACT-QUERY
- React Query infinite scroll pagination resets to first page
- The result of the invalidateQueries in react-query isn't as expected
- How to build a reactive application using React Query and Spring Webflux
- tanstack react-query ENOENT error when uninstalling v5 and installing v4
- How to type nextjs endpoint with TypeScript?
- Dev tool for Next.js cache on the client?
- Access Cookies in TRPC fetch handler
- onSuccess and onError are not working in newest version of React-Query?
- Handling relationships with React Query
- What next.js does behind the scenes when you call server actions inside client components?
- react-query useMutation onerror
- How to test conditional rendering component with useQuery result data?
- Create a helper function to call react-query mutation
- How to keep previous successfully fetched data when using useQuery
- Pausing the refetching of react-query using the default options without using reset
Related Questions in TANSTACKREACT-QUERY
- OnClick listener on cell element using TanStack Table using React
- InvalidateQueries not working. refetching is'nt happening. always show stale data. my component not getting re-rendered on mutations
- Why is React-Query cache not persisted across launches in a React-Native application?
- Why is my tanStack query cache not removing my queryKey upon invalidation (and therefore not re-fetching)?
- Aborting a query using trpc react-query
- TanStack Query v4 error at url-loader after version upgrade
- Why am I getting "no overload matches this call" using "useInfiniteQuery" with React?
- Unable to pass params in react tanstack query
- How to Efficiently Poll for Data with React Query
- How can I disable error logging to console in react-query v5 in my unit tests?
- Sanity.io & react-query: Chain deleting documents with references
- TanStack queries inadvertently entering "paused" state
- TanstackQuery - Query not executed
- How to use React-Query as state management on server side in Next.js?
- Tanstack options don't work in useMutation
Related Questions in TANSTACK
- In Next.js 14 can i use server component in Tanstack React Table?
- Search function with Orval generated TanStack Queries
- Caching with useQuery and Firestore Query
- How to disable default logs when using tanstack table?
- Using react query differently in online and offline mode
- Vue 3 Tanstack query with params data not being fetched
- Pattern for ErrorBoundary + TanStack's useQuery
- invalidateQueries request is triggered and responded with fresh data but cache is old
- Where can I find types Typescript Types for Tanstack Table library. Looks like official documentation does not have it
- How to generate href for a given route in Tanstack router?
- Toggle Selected Rows of Page Conditionally in TanStack Table
- How can I stop re-rendering TanStack React Table till the input field is fully entered?
- How to default sort with two columns in React Table v8
- React TanStack Virtualizer api getVirtualItems returns an empty array in RTA + Jest test
- i18n translation TanstackTable Vue
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?