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
The `polling-controller` package contains mixins for integrating the
polling pattern into a class. Using these mixins on their own is
somewhat cumbersome, so the package also contains utility functions
which can be used in place of a superclass.
Currently, there are variants of these utility functions for controllers
and non-controllers, but no variant for data services. That means if
engineers want to integrate polling into data services, they are out of
luck. This commit corrects that by adding two new mixins:
`BlockTrackerPollingDataService` (which subscribes to the block tracker)
and `StaticIntervalPollingDataService` (which runs on a cadence).
Copy file name to clipboardExpand all lines: packages/polling-controller/CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
### Added
11
+
12
+
- Add `BlockTrackerPollingDataService` and `StaticIntervalPollingDataService` mixins for integrating the polling pattern in data services ([#9352](https://github.com/MetaMask/core/pull/9352))
0 commit comments