Consider exposing queryKey
& queryFn
functions
#1855
Unanswered
peterferguson
asked this question in
Ideas
Replies: 1 comment 2 replies
-
Unlikely we do this before or for v1. Once v1 is out, feel free to drop a note on this thread and we can discuss. |
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.
-
Jotai is a popular state management framework. For projects using jotai & tanstack query together, jotai offer an integration library.
The basic idea is that it allows you to form atoms from your queries so that your other atoms can read from the queries directly.
If wagmi also exported the
queryKey
&queryFn
then it would make working with wagmi & jotai super nice.My current workaround is basically that I go into the wagmi source pull out the correct
queryKey
& then usewagmi/core
for thequeryFn
sExposing these could also be useful in other cases too, such as accessing query cache directly.
@tmm Is this something you would consider? Or should I just continue with the workaround?
Beta Was this translation helpful? Give feedback.
All reactions