#How can I remove the InfiniteData wrapper from the TData type
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
I am creating an infinteQuery and using a selector to flatten and transform the data. The query works as expected but typescript is complaining because (I believe) the TData type wraps the response type with InfiniteData. Doesn't seem to make a difference whether I leave it to infer or explicitly set the types.
Thanks!
How can I remove the InfiniteData wrapper from the TData type
Should work with inference. Please show a TS playground
I couldn't reproduce it in the TS playground but the TS playground was on v5 and I was still on v4. Updating to v5 fixed it 🙂