Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parameterize
TokenListController
by NetworkClientId
+ Integrate `…
…PollingController` (#1763) Resolves: MetaMask/MetaMask-planning#1032 Integrates new `PollingController` abstraction into the `TokenListController`, implements the `executePoll` method and parameterizes the `fetchTokenList` method by `networkClientId` such that tokenLists can be fetched and cached for different networks via concurrent polling sessions. **A note:** As is our current controller refactor strategy, these changes are additive, backwards compatible and coexist alongside the existing globally selected network pattern. Once we fully adopt this polling pattern we should no longer access the root `tokenList` state but rather access from the cache with a chainId selector.
- Loading branch information