1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-02 14:15:06 +01:00
metamask-extension/ui/pages/send
Alex Donesky 02c0cbede9 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 20:24:40 -02:30
..
send-content Remove button group for non-EIP-1559 networks (#11712) 2021-08-02 18:53:13 -05:00
send-footer Refactor send page state management (#10965) 2021-06-23 16:35:25 -05:00
send-header Update send and confirm state management, and tx controller gas defaults, for EIP1559 (#11549) 2021-07-30 22:15:18 -02:30
index.js Refactor send page state management (#10965) 2021-06-23 16:35:25 -05:00
send.constants.js move conversion utils to shared folder (#11451) 2021-07-06 12:48:49 -05:00
send.js Stop GasFeeController polling when pop closes (#11746) 2021-08-04 20:24:40 -02:30
send.scss
send.test.js EIP-1559 - Fall back to gasLimit and gasPrice for hardware wallets (#11716) 2021-08-02 17:52:18 -05:00
send.utils.js move conversion utils to shared folder (#11451) 2021-07-06 12:48:49 -05:00
send.utils.test.js move conversion utils to shared folder (#11451) 2021-07-06 12:48:49 -05:00