Closed posva closed 2 months ago
This doesn't work with strict 😅 Demo
Maybe a solution is adding a new property state
that contains the whole state raw. This would require an internal refactor to contain the whole state as one
A new object state
is added to useQuery()
to hold data, error, and status
TS now supports type narrowing when destructuring. So it's worth having multiple types for the return values of useQuery and useMutation