mirror of
https://github.com/pockethost/pockethost.git
synced 2025-11-24 14:35:49 +00:00
chore: unset userstore when not logged in
This commit is contained in:
parent
a3a60517de
commit
ffaa2946d7
@ -122,6 +122,8 @@ export const init = () => {
|
|||||||
isUserLoggedIn.subscribe(async (isLoggedIn) => {
|
isUserLoggedIn.subscribe(async (isLoggedIn) => {
|
||||||
let unsub: UnsubscribeFunc | undefined
|
let unsub: UnsubscribeFunc | undefined
|
||||||
if (!isLoggedIn) {
|
if (!isLoggedIn) {
|
||||||
|
userStore.set(undefined)
|
||||||
|
|
||||||
globalInstancesStore.set({})
|
globalInstancesStore.set({})
|
||||||
globalInstancesStoreReady.set(false)
|
globalInstancesStoreReady.set(false)
|
||||||
unsub?.()
|
unsub?.()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user