You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Type fixes and optimizations for EngineService, Redux store (#12509)
## **Description**
- ~Define types: `ReduxStore`, `ReduxState`~ (superseded by
#12538)
- Fix `any` types in `EngineService`.
- Optimize `EngineService` event subscriptions:
- Fix `update_bg_state_cb` callback being re-defined on every iteration.
- Consolidate `stateChange` events collections into
`BACKGROUND_STATE_CHANGE_EVENT_NAMES` constant for maintainability.
## **Related issues**
- Blocked by #10441
- Blocked by MetaMask/core#4968 and
corresponding release.
## **Manual testing steps**
## **Screenshots/Recordings**
## **Pre-merge author checklist**
- [x] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
## **Pre-merge reviewer checklist**
- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
0 commit comments