1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-31 22:51:28 +01:00

Add TODO notes to state$ handling.

Following emits from the storage service nicely allows for updates to
specified accounts being automatically picked up to state without special
processing
This commit is contained in:
Matt Gibson 2023-10-05 12:22:41 -04:00
parent 92021edb6b
commit 604671d70c
No known key found for this signature in database
GPG Key ID: 0B3AF4C7D6472DD1

View File

@ -26,6 +26,9 @@ import { DerivedUserState } from "./derived-user-state";
import { KeyDefinition } from "./key-definition";
import { StorageLocation } from "./state-definition";
// TODO: Update storage services to emit when any key is updated
// Then listen to that observable here to emit on `state$` when the `formattedKey$`
// is reported updated by the storage service;
export class DefaultUserState<T> implements UserState<T> {
private seededInitial = false;