1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00
metamask-extension/ui
Alex Donesky d359429f04
Stop GasFeeController polling when pop closes (#11746)
* Stop GasFeeController polling when pop closes

* Stop estimate gas polling on window unload

* lint + comments

* Improve client closed logic

* lint

* Add back _beforeUnload on unmount in gas-modal-page-container

* Add full check and call onClientClosed method for notifcation environment

* Add gas pollingToken tracking to appStateController and use to disconnect polling for each environment type

* remove unused method

* move controller manipulation logic from background.js to metamask-controller, disaggregate methods

* add beforeunload handling to reset gas polling tokens from root of send page

* cleanup, lint and address feedback

* clear appState gasPollingTokens when all instances of all env types are closed, fix pollingTokenType arg from onEnvironmentTypeClosed call in metamask-controller

* mock new methods to fix tests

* final bit of cleanup + comments

Co-authored-by: Dan Miller <danjm.com@gmail.com>
2021-08-04 16:53:13 -05:00
..
__mocks__ Increase Jest unit test coverage for the Swaps feature to ~60% (#11343) 2021-07-02 08:48:34 -05:00
components Stop GasFeeController polling when pop closes (#11746) 2021-08-04 16:53:13 -05:00
contexts Refactor send page state management (#10965) 2021-06-23 16:35:25 -05:00
css Provide New UI Components for EIP-1559 Designs (#11357) 2021-06-23 18:39:44 -05:00
ducks Stop GasFeeController polling when pop closes (#11746) 2021-08-04 16:53:13 -05:00
helpers Allow max priority fee to be below 1, and only require it to be greater than 0 (#11749) 2021-08-04 10:53:52 -02:30
hooks Stop GasFeeController polling when pop closes (#11746) 2021-08-04 16:53:13 -05:00
pages Stop GasFeeController polling when pop closes (#11746) 2021-08-04 16:53:13 -05:00
selectors EIP-1559 - Fall back to gasLimit and gasPrice for hardware wallets (#11716) 2021-08-02 17:52:18 -05:00
store Stop GasFeeController polling when pop closes (#11746) 2021-08-04 16:53:13 -05:00
index.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00