v1.9.0-rc.1
Pre-releaseThis release candidate updates the auto-batching enhancer to accept additional options for queuing subscriber notifications, and improves RTKQ perf by removing some unnecessary internal memoized selectors.
Please try this out and give us feedback (even if it's just "tried updating and everything's fine")! If no further issues come up we intend to publish 1.9 in the next few days.
npm i @reduxjs/toolkit@next
yarn add @reduxjs/toolkit@next
Docs updates for 1.9 are complete, and can be viewed here:
https://deploy-preview-2401--redux-starter-kit-docs.netlify.app/
Changelog
Autobatch Enhancer Options
The initial implementation of the autoBatchEnhancer()
always queued delayed subscriber notifications using queueMicrotask
. We've updated it to accept alternate options that queue with setTimeout
, requestAnimationFrame
, or bring-your-own-callback (more similar to redux-batched-subscribe
).
The variation in JS event loop timing behavior (microtasks, macrotasks, and frames) means having these options may be useful in different situations.
What's Changed
- Fix "running thunks" types and remove unnecessary RTKQ selectors by @markerikson in #2856
- Make autobatching notification queueing configurable by @markerikson in #2857
Full Changelog: v1.9.0-rc.0...v1.9.0-rc.1