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
Query client params type should be dynamically assigned through the openapi path params
Temporary we add // @ts-expect-error to suppress ts check.
In the future, we will find a way to pass right type assertion for query params.
this issue is for all createFetchingHook with @tanstack/react-query
functioncreateMetadataFetchingHook<Kextendskeyofpaths>(path: K){returnfunction({ params, reactQuery }: UseSuspenseQueryOptions<paths[typeofpath]['get']>){returnuseSuspenseQuery({
...reactQuery,queryKey: [path,params],queryFn: async({ signal })=>{// @ts-expect-error: params is dynamic type type for openapi-fetchconst{ data }=awaitclient.GET(path,{ params, signal });returndata;},});};}
The text was updated successfully, but these errors were encountered:
Query client params type should be dynamically assigned through the openapi path params
Temporary we add // @ts-expect-error to suppress ts check.
In the future, we will find a way to pass right type assertion for query params.
this issue is for all createFetchingHook with @tanstack/react-query
The text was updated successfully, but these errors were encountered: