Skip not skipping query in useQuery
See original GitHub issueIntended outcome: Setting skip to true in useQuery params should skip the query.
Actual outcome: Setting skip to true does not skip the query when refetch is used
How to reproduce the issue: Create a query with skip params while also using refetch
Versions
Sorry to open this again but the fix mentioned in #6190 #6752 did not fix the problem, please see the thread
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:7 (5 by maintainers)
Top Results From Across the Web
reactjs - Skip argument is being ignored in useQuery hook ...
I've just noticed that sometimes when I use the useQuery hook, the execution completely ignores the skip argument, and just proceed with the ......
Read more >[Solved]-Apollo client useQuery is skipping but not re-running ...
Coding example for the question Apollo client useQuery is skipping but not re-running the query when the skip flag becomes false?-Reactjs.
Read more >Hooks - Apollo GraphQL Docs
skip. boolean. If true , the query is not executed. Not available with useLazyQuery . This property is part of Apollo Client's React...
Read more >Usage With TypeScript - Redux Toolkit
Skipping queries with TypeScript using skipToken . RTK Query provides the ability to conditionally skip queries from automatically running ...
Read more >How to use Google Sheets QUERY function - Ablebits
While limit gets you the number of rows you specify, offset skips them, retrieving the rest. Tip. Offset also doesn't require any other...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If this issue is indeed a duplicate of #9765, I’m optimistic PR #9823 will fix it.
Thanks @Titozzz since this is covered in #9765 I’m going to close this out and we can work from the other issue.