Skip to content

Bump @reduxjs/toolkit from 2.1.0 to 2.2.0

Dependabot requested to merge dependabot-npm_and_yarn-reduxjs-toolkit-2.2.0 into master

Bumps @reduxjs/toolkit from 2.1.0 to 2.2.0.

Release notes

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 for overrideExisting in injectEndpoints, 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 prefetched

What's Changed

New Contributors

... (truncated)

Commits
  • 2341224 v2.2.0
  • 23f1114 Merge pull request #4183 from reduxjs/getinitialstate-entities
  • 5ea4c31 Merge pull request #4143 from riqts/document-withTypes-for-2.1.0
  • 6f4194d Merge pull request #4190 from aryaemami59/reformat-files
  • 5aa2594 Reformat all files one more time
  • 7a5b39a Slightly modify prettier config
  • d09ab21 Change test timeout for codegen
  • 8eff730 Merge pull request #4175 from aryaemami59/use-tsconfigPaths
  • 554aac6 Add pool: "forks" to vitest config of codegen
  • c979069 Reformat files to remove trailing commas in tsconfig files
  • Additional commits viewable in compare view


Dependabot commands
You can trigger Dependabot actions by commenting on this MR
  • $dependabot rebase will rebase this MR
  • $dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts

Merge request reports

Loading