Make redux.initialize() wait until Redux is ready (#9180) · ScratchAddons/ScratchAddons@6288f21 · GitHub
Skip to content

Commit 6288f21

Browse files
authored
Make redux.initialize() wait until Redux is ready (#9180)
* Make Redux initialization awaitable * Report an error if the Redux readiness promise is missing The promise should exist even while Redux is still loading. If it is missing, throw an error instead of carrying on as though Redux is ready. Also change "Existing callers" to "Callers", since the same advice applies to future addons.
1 parent a44b2ec commit 6288f21

2 files changed

Lines changed: 31 additions & 16 deletions

File tree

‎addon-api/content-script/ReduxHandler.js‎

Lines changed: 20 additions & 14 deletions

‎content-scripts/load-redux.js‎

Lines changed: 11 additions & 2 deletions

0 commit comments

Comments
 (0)