question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Skip not skipping query in useQuery

See original GitHub issue

Intended 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:closed
  • Created a year ago
  • Reactions:3
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
benjamncommented, Jun 14, 2022

If this issue is indeed a duplicate of #9765, I’m optimistic PR #9823 will fix it.

1reaction
jpvajdacommented, Jun 13, 2022

Thanks @Titozzz since this is covered in #9765 I’m going to close this out and we can work from the other issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found