Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update dependency @reduxjs/toolkit to ^2.2.8 (#6147)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@reduxjs/toolkit](https://redux-toolkit.js.org) ([source](https://redirect.github.com/reduxjs/redux-toolkit)) | [`^2.2.7` -> `^2.2.8`](https://renovatebot.com/diffs/npm/@reduxjs%2ftoolkit/2.2.7/2.2.8) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@reduxjs%2ftoolkit/2.2.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@reduxjs%2ftoolkit/2.2.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@reduxjs%2ftoolkit/2.2.7/2.2.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@reduxjs%2ftoolkit/2.2.7/2.2.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>reduxjs/redux-toolkit (@​reduxjs/toolkit)</summary> ### [`v2.2.8`](https://redirect.github.com/reduxjs/redux-toolkit/releases/tag/v2.2.8) [Compare Source](https://redirect.github.com/reduxjs/redux-toolkit/compare/v2.2.7...v2.2.8) This **bugfix** release fixes a long-standing issue with RTK Query lazy query triggers returning stale data in some cases, fixes an error handling issue in RTK Query, and exports additional TS types. #### Changelog ##### Lazy Query Trigger Handling We'd had a couple long-standing issues reporting that `const result = await someLazyQueryTrigger()` sometimes returned stale data, especially if a mutation had just invalidated that query's tag. We finally got a good repro of this issue and identified it as a mis-written call inside of the middleware that skipped past the necessary handling to activate the correct query status tracking in that scenario. This should now be fixed. ##### Other Changes Timeout handling in RTKQ endpoints should now correctly throw a timeout-related error instead of an `AbortError`. Base queries now have access to the current `queryCacheKey` value so it can be used in deciding query logic. We've exported several more TS types related to query options, as some users have been depending on those even though they previously weren't part of the public API. #### What's Changed - Export `QueryExtraOptions` and `MutationExtraOptions` by [@​aryaemami59](https://redirect.github.com/aryaemami59) in [https://github.com/reduxjs/redux-toolkit/pull/4556](https://redirect.github.com/reduxjs/redux-toolkit/pull/4556) - Fix `mangleErrors` not preserving different error types by [@​aryaemami59](https://redirect.github.com/aryaemami59) in [https://github.com/reduxjs/redux-toolkit/pull/4586](https://redirect.github.com/reduxjs/redux-toolkit/pull/4586) - Add the `TypedUseQueryStateOptions` helper type by [@​aryaemami59](https://redirect.github.com/aryaemami59) in [https://github.com/reduxjs/redux-toolkit/pull/4604](https://redirect.github.com/reduxjs/redux-toolkit/pull/4604) - feat(baseQuery): expose queryCacheKey in baseQuery by [@​HaakonSvane](https://redirect.github.com/HaakonSvane) in [https://github.com/reduxjs/redux-toolkit/pull/4636](https://redirect.github.com/reduxjs/redux-toolkit/pull/4636) - Fix `AbortError` being triggered incorrectly on `createApi` endpoint timeout by [@​andrejpavlovic](https://redirect.github.com/andrejpavlovic) in [https://github.com/reduxjs/redux-toolkit/pull/4628](https://redirect.github.com/reduxjs/redux-toolkit/pull/4628) - type: export QueryReturnValue by [@​hornta](https://redirect.github.com/hornta) in [https://github.com/reduxjs/redux-toolkit/pull/4640](https://redirect.github.com/reduxjs/redux-toolkit/pull/4640) - call `initiate` to refetch queries from middleware by [@​phryneas](https://redirect.github.com/phryneas) in [https://github.com/reduxjs/redux-toolkit/pull/4651](https://redirect.github.com/reduxjs/redux-toolkit/pull/4651) **Full Changelog**: reduxjs/redux-toolkit@v2.2.7...v2.2.8 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 5pm,every weekend" in timezone America/Los_Angeles, Automerge - "after 5pm,every weekend" in timezone America/Los_Angeles. 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/valora-inc/wallet). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMTUuMSIsInVwZGF0ZWRJblZlciI6IjM4LjExNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJucG0iLCJyZW5vdmF0ZSJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information