1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 05:13:29 +00: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

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;