Replies: 1 comment
-
love it ❤️ . One question that remains is if we want to add this to the recommended ruleset, and if so, on which level ? |
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
-
Separating
queryKey
andqueryFn
can cause unexpected runtime issues when the same query key is accidentally used with more than onequeryFn
.Rule Details
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Options
ignorePatterns
An array of strings used to ignore specific query key patterns:
collections
An array of strings used to enforce the use of
queryOptions
in specific collections of queries:When Not To Use It
If you do not want to enforce the use of
queryOptions
in your codebase, you will not need this rule.Attributes
Beta Was this translation helpful? Give feedback.
All reactions