Closed msutkowski closed 3 years ago
Adding notes here for posterity before adding docs to the site. If you find that your error
type is unknown
when using hooks, this applies to you.
This can be solved by:
const baseQuery = retry(otherEnhancer(fetchBaseQuery({ baseUrl: 'http://example.com/' })));`
const api = createApi({ baseQuery, endpoints: () => ({}) });
Need to investigate, but it appears that BaseQueryEnhancer is dropping the types of what's passed into it.
Current workaround is to: