Easily & automatically derive query keys tightened with dependencies #11069
Unanswered
seiyab
asked this question in
Show and tell
Replies: 0 comments
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.
-
I published a package @seiyab/ecq that automatically derive query keys.
In my experience, identity for called function + function parameters are good query keys enough.
For example, considering you have a client that can used like
api.getProduct({id}), you can utilize ecq like:See README for more detail.
I'd like to hear community's feedbacks.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions