1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/shared/constants
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
..
alerts.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
app.js Stop GasFeeController polling when pop closes (#11746) 2021-08-04 16:53:13 -05:00
gas.js EIP-1559 and Rinkeby Testnet support in Swaps (#11635) 2021-07-30 13:35:30 +02:00
metametrics.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
network.js Add support for Polygon (#11545) 2021-07-20 19:17:15 +02:00
permissions.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
swaps.js EIP-1559 and Rinkeby Testnet support in Swaps (#11635) 2021-07-30 13:35:30 +02:00
time.js Adding periodic reminder modal for backing up recovery phrase (#11021) 2021-06-04 23:33:58 -07:00
tokens.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
transaction.js update txParams normalization and validation. (#11406) 2021-06-29 14:25:56 -05:00