Closed WilsonCWong closed 2 weeks ago
As a general rule, any time you may have been importing from /dist/
that's accessing internals and it wasn't intentionally exposed :)
That said, we currently do:
export { fetchBaseQuery } from './fetchBaseQuery'
export type {
FetchBaseQueryError,
FetchBaseQueryMeta,
FetchArgs,
} from './fetchBaseQuery'
and I can't think of a reason not to export FetchBaseQueryArgs
here.
File a PR to add that?
PR filed! 😃
released in v2.2.6 😄
came looking for this, wasn't disappointed. Thank you!
Hello,
I recently upgraded from RTK Toolkit 1.9.7, and I noticed that because UMD build artifacts are no longer included, I could not import the
FetchBaseQueryArgs
like so:My use case for this is that I have implemented a custom version of
fetchBaseQuery
at my company that dynamically constructs the URL through various customizable callbacks and options to help us target different projects and environments through our microservices. It looks something like this:Would it be possible to expose this type again? Also open to alternative ways of doing this, but this approach has worked well so far.