1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 11:46:13 +02:00
metamask-extension/ui/components/app/gas-customization/gas-modal-page-container
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
..
advanced-tab-content Fixing jest component test output errors (#11139) 2021-05-20 11:28:25 -07:00
basic-tab-content remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
gas-modal-page-container-component.test.js Stop GasFeeController polling when pop closes (#11746) 2021-08-04 16:53:13 -05:00
gas-modal-page-container-container.test.js wire up gasFeeController (#11421) 2021-07-08 15:23:00 -05:00
gas-modal-page-container.component.js Stop GasFeeController polling when pop closes (#11746) 2021-08-04 16:53:13 -05:00
gas-modal-page-container.container.js rely upon gas fee controller for gas price estimates (#11511) 2021-07-16 11:06:32 -05:00
index.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
index.scss Various UI fixes (#11512) 2021-07-13 19:06:12 -07:00