-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refac(console): factor out a
Store
type (#359)
Currently, there's a bit of repeated boilerplate code for processing updates to the stored state for tasks, resources, and async ops, such as tracking a list of new items since the last update, and handling ID remapping. This PR builds upon the refactor in #358, and replaces the `state::id` module with a new `state::store` module. This module contains all of the old code for ID remapping along with a new `Store` type that implements a store of objects by ID. The `Store` type now implements much of the boilerplate code that was previously repeated in the `state::tasks`, `state::resources`, and `state::async_ops` modules.
- Loading branch information
Showing
6 changed files
with
493 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.