rescriptbr/react-query

select should take `cacheData and return `queryData

Opened this issue · 0 comments

https://github.com/rescriptbr/react-
query/blob/b202f20611c29316991bb0dbe439d8cb87f3c0b0/src/ReactQuery_Query.res#L22

The way it's typed now this option isn't usable, as you have to return the exact type that's passed in instead of transforming it.

https://tanstack.com/query/v4/docs/framework/react/reference/useQuery