Sourced from @reduxjs/toolkit
's
releases.
v2.2.0
This minor release:
- Adds a second parameter to
entityAdapter.getInitialState(additionalProps, entities)
to allow prefilling state
- Equivalent to
entityAdapter.setAll(entityAdapter.getInitialState(additionalProps), entities)
- First parameter can be
undefined
if no additional properties are desired- Allows initialising
combineSlices
with no static reducers
- Previously
const combinedReducer = combineSlices().withLazyLoadedSlices<LazyLoadedSlices>()
would have thrown an error- Now returns a "no-op" reducer that just returns an empty object until first reducer injected
- Allows a new
'throw'
value foroverrideExisting
ininjectEndpoints
, which throws an error if a definition is injected with a name which is already used- Exports more type helpers for RTKQ hook and trigger types
- Exports types related to overriding result types in
enhanceEndpoints
- Fixes state inference for injected slices when undeclared (i.e. not in
LazyLoadedSlices
)- Adds a
action.meta.arg.isPrefetch
value to query thunk actions when prefetchedWhat's Changed
- Revamp type tests setup by
@aryaemami59
in reduxjs/redux-toolkit#4095- Bump Prettier and Prettier related packages by
@aryaemami59
in reduxjs/redux-toolkit#4126- Fix codemods to work with TypeScript 4.7+ by
@aryaemami59
in reduxjs/redux-toolkit#4081- Export types related to overriding the result types by
@aryaemami59
in reduxjs/redux-toolkit#4134- Migrate type tests to Vitest by
@aryaemami59
in reduxjs/redux-toolkit#4127- Fix RetryOptions type test by flipping order by
@EskiMojo14
in reduxjs/redux-toolkit#4136- Format all files by
@aryaemami59
in reduxjs/redux-toolkit#4135- [Docs/Website] skipPollingIfUnfocused added to polling overview and query options by
@riqts
in reduxjs/redux-toolkit#4131- [Docs] Changed create.asyncThunk setup admonition to caution by
@riqts
in reduxjs/redux-toolkit#4150- Temporarily revert node-fetch bump until ESM issues are sorted by
@EskiMojo14
in reduxjs/redux-toolkit#4151- Contributing Markdown Refresh by
@itz-Me-Pj
in reduxjs/redux-toolkit#4139- investigate re-adding size limit action by
@EskiMojo14
in reduxjs/redux-toolkit#4083- Add size limit imports for more commonly used RTK exports by
@EskiMojo14
in reduxjs/redux-toolkit#4155- pure some things by
@EskiMojo14
in reduxjs/redux-toolkit#4157- cut back on suffixes tested for size by
@EskiMojo14
in reduxjs/redux-toolkit#4160- Incorrect builder method referenced by
@kantbtrue
in reduxjs/redux-toolkit#4161- Rename
cli.js
tocli.mjs
by@aryaemami59
in reduxjs/redux-toolkit#4169- Migrate Codegen OpenAPI's unit tests to Vitest by
@aryaemami59
in reduxjs/redux-toolkit#4137- Fix wrong state for injected slices when not declared via
withLazyLoadedSlices
by@aryaemami59
in reduxjs/redux-toolkit#4172- [Docs, createEntityAdapter API]: add missing setOne and setMany signature by
@kyselberg
in reduxjs/redux-toolkit#4173- Corrected the "Observing cache behaviour" example point no.4 by
@721-atikshaikh
in reduxjs/redux-toolkit#4174- feat: add isPrefetch property in query action by
@juliengbt
in reduxjs/redux-toolkit#4177- allow initialising combined slice reducer with no static slices by
@EskiMojo14
in reduxjs/redux-toolkit#4184- Create more Typed wrappers for RTKQ hook types by
@EskiMojo14
in reduxjs/redux-toolkit#4147- proposal fix for axios base query types by
@smff
in reduxjs/redux-toolkit#4186- Provide 'throw' option for
overrideExisting
by@ffluk3
in reduxjs/redux-toolkit#4189- Use vite-tsconfig-paths to make path aliasing easier by
@aryaemami59
in reduxjs/redux-toolkit#4175- Remove trailing commas in
tsconfig.json
files of all CodesandBox examples by@aryaemami59
in reduxjs/redux-toolkit#4190- [Docs] Added withTypes documentation in createDraftSafeSelector by
@riqts
in reduxjs/redux-toolkit#4143- Add second parameter to getInitialState to prefill entities by
@EskiMojo14
in reduxjs/redux-toolkit#4183New Contributors
@itz-Me-Pj
made their first contribution in reduxjs/redux-toolkit#4139@kantbtrue
made their first contribution in reduxjs/redux-toolkit#4161
... (truncated)
20df6f0
2.2.16f2d782
Merge pull request #4204
from reduxjs/typed-use-mutation-triggera131b32
fix imports and exports9a4cdaa
remove alias65d5a64
rename TypedUseMutationTrigger to TypedMutationTrigger, and add
deprecated aliasd712ab3
Merge pull request #4202
from aryaemami59/bump-prettiera181a5c
Format all files0213df5
Remove overrides
field in
.prettierrc.json
f8683a6
Bump prettier for all packages34c3b5f
Merge pull request #4191
from reduxjs/update-entityadapter-docs