mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(web): websocket reconnect (#7234)
* fix(web): websocket reconnect * reset store after navigation completes * remove loggedOut check
This commit is contained in:
parent
7f5459f050
commit
e7a875eadd
3 changed files with 15 additions and 21 deletions
|
|
@ -1,8 +1,12 @@
|
|||
import type { UserResponseDto } from '@immich/sdk';
|
||||
import { writable } from 'svelte/store';
|
||||
|
||||
export let user = writable<UserResponseDto>();
|
||||
export const user = writable<UserResponseDto>();
|
||||
|
||||
/**
|
||||
* Reset the store to its initial undefined value. Make sure to
|
||||
* only do this _after_ redirecting to an unauthenticated page.
|
||||
*/
|
||||
export const resetSavedUser = () => {
|
||||
user = writable<UserResponseDto>();
|
||||
user.set(undefined as unknown as UserResponseDto);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue