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
Have a question. Am I suppose to modify this function in order to have default query options?
/**
* Context injected into every react-query hook wrappers
*
* @param queryOptions options from the useQuery wrapper
*/
export function useNamespaceContext<
TQueryFnData = unknown,
TError = unknown,
TData = TQueryFnData,
TQueryKey extends QueryKey = QueryKey
>(
_queryOptions?: Omit<
UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,
'queryKey' | 'queryFn'
>
): UvrmContext {
return {
fetcherOptions: {},
queryOptions: {},
queryKeyFn,
};
}
Also, the type definition type NamespaceContext only has enabled property. So, I guess, I can not use for example retry there unless I change the type definition.
The text was updated successfully, but these errors were encountered:
Have a question. Am I suppose to modify this function in order to have default query options?
Also, the type definition
type NamespaceContext
only hasenabled
property. So, I guess, I can not use for exampleretry
there unless I change the type definition.The text was updated successfully, but these errors were encountered: