Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: issue where
QueuedRequestController.state.queuedRequestCount
i…
…s not updated after flushing requests for an origin (#4898) ## Explanation Fix issue where `QueuedRequestController.state.queuedRequestCount` is not updated after flushing requests for an origin ## References - #4846 - MetaMask/metamask-extension#28090 ## Fixes - Bug identified [in v12.7.0 RC Thread](https://consensys.slack.com/archives/C029JG63136/p1730918073046389?thread_ts=1729246801.516029&cid=C029JG63136) ## Before https://drive.google.com/file/d/1ujdQgVLlT8KlwRwO-Cc3XvRHPrkpxIg_/view?usp=drive_link ## After https://github.com/user-attachments/assets/e77928e5-165b-441a-b4da-0e10471c0529 ## Changelog ### `@metamask/queued-request-controller` - **FIX**: Ensure queuedRequestCount value is updated properly after flushing the queue for a given origin ## Checklist - [ ] I've updated the test suite for new or updated code as appropriate - [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [ ] I've highlighted breaking changes using the "BREAKING" category above as appropriate - [ ] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes
- Loading branch information