isLoading is always true. #2471
Unanswered
VikaramjitSinghGorraya
asked this question in
Q&A
Replies: 1 comment
-
impossibility to say without a reproduction, please create one. Some ideas:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Once the query is run, data should be stored in the cache. But on navigating to another page and coming back causes isLoading to be true, which leads to skeleton being displayed on screen rather than showing data instantaneously, which should not be the case.
Here is the code.
import React from 'react'
import {HStack, VStack, Skeleton, Box,Center, Heading, Text} from '@chakra-ui/react'
import {useQuery} from 'react-query'
import ProductCard from '../layout/ProductCard'
import {getProductsList} from '../helpers/Queries'
import Header from '../layout/Header'
const Home = () => {
}
export default Home
Beta Was this translation helpful? Give feedback.
All reactions