What is the best way to handle "no data" when using useInfiniteQuery #3419
Unanswered
shubhadeep-kartbite
asked this question in
Q&A
Replies: 2 comments
-
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
-
You might be doing something wrong. See this CSB |
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.
-
Hi all,
I am trying to build a Posts screen with filters, for that I am using useInfiniteQuery.
If no posts are present for some filter the data variable is becoming like this ->
{"pageParams": [undefined], "pages": [[]]}
and
isLoading is TRUE
so I am not able to perform other actions like "showing no data found or try again"I have used the below codes:
Beta Was this translation helpful? Give feedback.
All reactions