"inactive" option for refetchOnMount #1991
Unanswered
BenLorantfy
asked this question in
Ideas
Replies: 2 comments 2 replies
-
@TkDodo would you be open for a PR for this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'd like to understand the use-case for something like this please. |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
As of today
refetchOnMount
has these options:I'd like to propose adding an "inactive" option that only refetches on mount if the query was previously inactive before mount. I'd like to try working on this feature if it's something that is desired.
EDIT
I created this commit to help discussion as it basically does what I'm thinking: BenLorantfy@9e1f6a9 . I can create a proper PR later if wanted.
Beta Was this translation helpful? Give feedback.
All reactions