useQuery should return a dataPromise
as well as data
for easy migration
#705
Answered
by
wolverineks
stevenroussey-privicy
asked this question in
General
-
We already have a lot of code that expects a promise of data, and would like to switch to |
Beta Was this translation helpful? Give feedback.
Answered by
wolverineks
Jul 30, 2020
Replies: 1 comment
-
could you give an example? |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
stevenroussey-privicy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
could you give an example?
could you use
onSuccess: (result) => Promise.resolve(result).then(...)