-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed memory leak in rapid hook arg changing (#4268)
* Added unsubscribeHandler for fulfilled/rejected queryThunk * Added testcase for memory leak listed in github Issues * Removed unnecessary delay call * Re-defined delay function and removed Math.random() in favour of i++ * Moved near identical solutions into one conditional * Reformat for visual clarity * Added additional check to clearly show resolution of queries * Refactored unsubscribe matching to make better use of type narrowing
- Loading branch information
Showing
2 changed files
with
74 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters