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
I believe we could simply take the React package and adapt it. However, I don’t have much experience with either Solid or openapi-typescript. What are your thoughts?
I’m not entirely sure how challenging it might be, but I don’t expect it to be overly complicated.
All instances of useX should be replaced with createX.
Each createX function accepts a function that returns the options object.
typeFunctionedParams<T>=()=>T;
// To access the "queryFn" we had to use the return type since options is a function. (Not 100% sure)// So this:
queryFn: Exclude<CreateQueryOptions<Response["data"],Response["error"],InferSelectReturnType<Response["data"],Options["select"]>,QueryKey<Paths,Method,Path>>["queryFn"],SkipToken|undefined>;// Become
queryFn: Exclude<ReturnType<CreateQueryOptions<Response["data"],Response["error"],InferSelectReturnType<Response["data"],Options["select"]>,QueryKey<Paths,Method,Path>>>["queryFn"],SkipToken|undefined>;
Description
It's too bad we don't have an equivalent to openapi-react-query for solid.
Maybe it could be implemented?
Proposal
Simple example
I believe we could simply take the React package and adapt it. However, I don’t have much experience with either Solid or openapi-typescript. What are your thoughts?
I’m not entirely sure how challenging it might be, but I don’t expect it to be overly complicated.
Extra
The text was updated successfully, but these errors were encountered: