Returned type inference when using tanstack query
I have a hook
which works great but the type inference breaks in situations that you might change the result type.
In the case above the data incorrectly doesn't have set with exercises. Which makes sense because the
GetSetGroupsArgs
is static and doesn't update with args but I'm not sure how to go about this better.0 Replies