A function that fetches a URL and returns { data } or { error }.
{ data }
{ error }
This is the injection point for custom HTTP transports. When used with RTK Query, pass the baseQuery from queryFn directly.
baseQuery
queryFn
The function should return { data } on success or { error } on failure. Returning both as undefined is a type error.
A function that fetches a URL and returns
{ data }or{ error }.This is the injection point for custom HTTP transports. When used with RTK Query, pass the
baseQueryfromqueryFndirectly.The function should return
{ data }on success or{ error }on failure. Returning both as undefined is a type error.