This release fixes a bug with RTK Query cache invalidation, and exposes the useLazyQuerySubscription
hook.
Installation:
npm i @reduxjs/toolkit@next
yarn add @reduxjs/toolkit@next
Changelog
Invalidation Bugfix
We saw that RTK Query cache invalidation was actually broken in alpha.1
. After investigation, it looks like TypeScript was outputting incorrect code for looping over a set.values()
iterator. We've tweaked the logic to work around that.
Please upgrade to this release ASAP, as invalidation is a key part of RTK Query's functionality.
useLazyQuerySubscription
The useLazyQuerySubscription
hook was documented, but wasn't actually being included in the output. We've fixed that.
Additional Build Tweaks
We're still fiddling with the combination of ESBuild and TypeScript for our recently updated build chain, and have flipped a couple more switches in the process. Should be no user-visible difference.
Changes
- Expose
useLazyQuerySubscription
for endpoints ( #1017 - @Shrugsy) - Fix bad transpilation of set iteration breaking invalidation (#1020 - @markerikson)