QueryOptions for cross-framework library #10735
Unanswered
jamestalmage
asked this question in
Q&A
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 see what looks like nearly duplicate code in
react-query,lit-query,vue-queryfor theirqueryOptionsmethod definitions. Not precisely the same, but darn close.If I'm developing a library using
tanstack-queryto fetch data from my service, is there a pattern to conveniently produce my own@mylib/query-coreimplementation that producesoptionsobjects that includequeryKeyandqueryFnthat makes it easy to then produce@mylib/query-reactand@mylib/query-vue, etc. Seems like that's a potential benefit of the pattern (if not the outright goal). Is there a library doing this effectively/efficiently that I should take a look at?Beta Was this translation helpful? Give feedback.
All reactions