1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 13:23:34 +00:00

[PM-20433] Add view cache options for view cache service signals to allow cached values to persist navigation events (#14348)

This commit is contained in:
Shane Melton
2025-04-21 13:26:59 -07:00
committed by GitHub
parent 3a8045d7d0
commit d6bda3bcdf
6 changed files with 149 additions and 29 deletions

View File

@@ -18,6 +18,11 @@ type BaseCacheOptions<T> = {
/** An optional injector. Required if the method is called outside of an injection context. */
injector?: Injector;
/**
* Optional flag to persist the cached value between navigation events.
*/
persistNavigation?: boolean;
} & (T extends JsonValue ? Deserializer<T> : Required<Deserializer<T>>);
export type SignalCacheOptions<T> = BaseCacheOptions<T> & {