You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is nothing specific to say about the example, except of that I need to hack into the built-in types of react-query. queryOptions wasn't too hard to do, mutationOptions was a bit harder, and I struggled a lot creating infiniteQueryOptions, so I decided to skip its implementation for now.
I'd like to request a feature that would help integrating "get options" to any library. I don't have a design proposal (I'm not a big specialist of rect-query, but would be glad to discuss), but roughly saying, it would be great to have a fabric that creates these functions. Something like:
Of course, an additional layer of abstraction is quite bulky, but might help a lot in building client libraries that perform requests over applicable protocols.
Maybe I missed something and there is already a feature of this kind? Thanks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm integrating tRPC-like feature that would help to initiate
useQuery
etc requests by building list of options.For example:
There is nothing specific to say about the example, except of that I need to hack into the built-in types of react-query.
queryOptions
wasn't too hard to do,mutationOptions
was a bit harder, and I struggled a lot creatinginfiniteQueryOptions
, so I decided to skip its implementation for now.I'd like to request a feature that would help integrating "get options" to any library. I don't have a design proposal (I'm not a big specialist of rect-query, but would be glad to discuss), but roughly saying, it would be great to have a fabric that creates these functions. Something like:
Of course, an additional layer of abstraction is quite bulky, but might help a lot in building client libraries that perform requests over applicable protocols.
Maybe I missed something and there is already a feature of this kind? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions