Creates a well-known query builder for use inside RTK Query queryFn.
queryFn
Constructs a request object from the URL, then exposes applyQuery to execute the request through the caller's baseQuery. Response validation uses isValidWellknownResponse.
applyQuery
baseQuery
The well-known endpoint URL
A builder with applyQuery(callback) that returns a result compatible with RTK Query's QueryReturnValue
applyQuery(callback)
QueryReturnValue
queryFn: async (url, _api, _extra, baseQuery) => { return initWellknownQuery(url).applyQuery(async (req) => await baseQuery(req));} Copy
queryFn: async (url, _api, _extra, baseQuery) => { return initWellknownQuery(url).applyQuery(async (req) => await baseQuery(req));}
Creates a well-known query builder for use inside RTK Query
queryFn.Constructs a request object from the URL, then exposes
applyQueryto execute the request through the caller'sbaseQuery. Response validation uses isValidWellknownResponse.