mirror of
https://github.com/bitwarden/clients.git
synced 2026-06-25 21:02:59 +08:00
Bug fix for PM-15914 where switching users would incorrectly share cached derived states. The `DerivedStateProvider` now uses a `WeakMap` to maintain separate caches for each user's state `Observable`. - Modifies `DefaultDerivedStateProvider` to use `WeakMap` for caching - Each user's state `Observable` gets its own definition cache - Added test to verify correct behavior during user switching - Allows proper garbage collection of unused state caches This fixes issues where: - Users would see other users' cached states after switching accounts - Derived states weren't properly isolated between users - Cache keys didn't distinguish between different user states |
||
|---|---|---|
| .. | ||
| .vscode | ||
| admin-console | ||
| angular | ||
| auth | ||
| billing | ||
| common | ||
| components | ||
| importer | ||
| key-management | ||
| node | ||
| platform | ||
| shared | ||
| tools | ||
| vault | ||