Closed otahontas closed 8 months ago
Latest commit: cea9e18187231a7892468db111bb8b4d4191c621
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
This PR removes the
createApi
option from this library. I find it easier to just support one way of generating the hooks, so from now on api initialising should be done as follows:Basically users need to always pass in an existing api instance created with redux toolkit. I've added a
createEmptyApi
(happy to take suggestions for a better name :D) helper that generates api instance without any endpoints that can be passed then toenhanceApi
function.Bumping also redux toolkit major and pushing this library towards
0.1.0
.