A small library inspired by TkDodo's blog: "Effective React Query Keys" and "The Query Options API". #8525
Unanswered
MlNl-PEKKA
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
-
Hey everyone! 👋
I'm currently building a library inspired by TkDodo's awesome blog posts, Effective React Query Keys and The Query Options API.
I loved his approach to organizing
queryKey
s into a query-ke- factory, so I decided to take the idea a step further. I'm building a query/mutation options factory, that:queryKey
s andmutationKey
s based on the structure of the factory.queryOptions
API.Here's the factory-code:
Here's the usage with type-suggestions of the above factory:
Thank you so much for taking the time to read this! This is my first time building a library, and I’d love any feedback or advice from the React Query community. 🙏
Beta Was this translation helpful? Give feedback.
All reactions