Replies: 1 comment
-
select isn’t asynchronous. If you want async transformation, you have to do it in the queryFn. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm making some experiments where the
data
is asynchronous, so, how can I define theselect
methodasync?
Here's the use case I'm trying to implement:
select
property can't be async due to data will return a promiseIs it viable to add support for something like a new
asyncSelect
method?Without thinking in handling the
data promise
on a different function or hook, can it be done usinguseQuery
definition or globalselect
query options?ps: this is a similar way of getting this, but with
queryFn
Thanks a lot! 🙌🏽
Beta Was this translation helpful? Give feedback.
All reactions