Redux Toolkit · Function
buildCreateApi
createApi defines RTK Query endpoints and returns an API slice. The slice manages data fetching and caching, and the React version can generate hooks.
Last updated
Syntax
createApi(options)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
createBaseApibuildCreateApicoreModulereactHooksModulefetchBaseQueryendpointsAPI sliceautomatic tag invalidation