Zum Inhalt springen
verdict:

Redux Toolkit 2.12.0

notable

note: die Zusammenfassung und die Release Notes sind auf Englisch

note: keine Zusammenfassung für dieses ältere Release

Wir fassen die neueren Releases zusammen. Die originalen Release Notes dieser Version stehen hier unten.

release-notesgithub.com/reduxjs/redux-toolkit · 35 Zeilen
  1. This **feature release** adds RTK usage skills files (via TanStack Intent) exports the RTK Query hook options types for reusability, fixes issues with infinite query status flags and batching handling, and makes some small TS improvements.
  2. ## Changelog
  3. ### Skills Files
  4. We've generated agent skill files that are now included in the RTK package itself in a `skills` folder. They cover using and migrating to modern RTK, client and server state management, and handling side effects. You can point your agent at these skills yourself, or use [TanStack Intent](https://tanstack.com/intent/latest/docs/getting-started/quick-start-consumers) to pick them up.
  5. ### TypeScript Improvements
  6. The types for our RTK Query hook options are now exported, which lets you stop using `Parameters` to extract those types for use in your own code.
  7. The types for listener middleware matchers were tweaked to allow `interface`-based type guards, not just `type`-based definitions.
  8. The internal `IgnorePaths` type was renamed to `IgnoredPaths` for consistency.
  9. We now use the built-in `NoInfer` util that comes with TS 5.4+.
  10. ### Fixes
  11. We fixed handling of the `isSuccess` status flag when switching infinite query cache entries. This should prevent accidental UI flashes that were occurring due to this flag accidentally flipping.
  12. We've added a 100ms timeout fallback to the `autoBatch` enhancer's `requestAnimationFrame` timer. We had several reports that `rAF` didn't work correctly when used in background tabs / opened windows, and that RTK never updated the UI. This should ensure that the updates flush correctly.
  13. ## What's Changed
  14. * Export hook options types for RTK Query hooks by @veeceey in https://github.com/reduxjs/redux-toolkit/pull/5218
  15. * Add TanStack Intent skills for Redux Toolkit by @phryneas in https://github.com/reduxjs/redux-toolkit/pull/5249
  16. * Keep isSuccess: true when switching infinite query cache entries by @riqts in https://github.com/reduxjs/redux-toolkit/pull/5268
  17. * fix: allow interface-based type guards as listener matcher by @riqts in https://github.com/reduxjs/redux-toolkit/pull/5269
  18. * fix: add setTimeout fallback to raf autoBatch strategy for background tabs by @riqts in https://github.com/reduxjs/redux-toolkit/pull/5273
  19. * chore(toolkit): rename `IgnorePaths` type to `IgnoredPaths` by @Ri5ha6h in https://github.com/reduxjs/redux-toolkit/pull/5284
  20. * feat(toolkit)!: switch to native `NoInfer` utility type by @aryaemami59 in https://github.com/reduxjs/redux-toolkit/pull/5289
  21. **Full Changelog**: https://github.com/reduxjs/redux-toolkit/compare/v2.11.2...v2.12.0

auf github ansehenimported 2026-09-28 über npm