From 604671d70c84afff18fd00757a6b96080e72c3ae Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Thu, 5 Oct 2023 12:22:41 -0400 Subject: [PATCH] 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 --- libs/common/src/platform/state/default-user-state.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/common/src/platform/state/default-user-state.ts b/libs/common/src/platform/state/default-user-state.ts index 5ca461ab06..6915c1143f 100644 --- a/libs/common/src/platform/state/default-user-state.ts +++ b/libs/common/src/platform/state/default-user-state.ts @@ -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 implements UserState { private seededInitial = false;