mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +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:
@@ -26,6 +26,9 @@ import { DerivedUserState } from "./derived-user-state";
|
|||||||
import { KeyDefinition } from "./key-definition";
|
import { KeyDefinition } from "./key-definition";
|
||||||
import { StorageLocation } from "./state-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> {
|
export class DefaultUserState<T> implements UserState<T> {
|
||||||
private seededInitial = false;
|
private seededInitial = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user