feat: use state based auth instead of store based (#488)
* misc: switch to state for auth * fix: class based auth not working
This commit is contained in:
1 parent
8c6ff77fac
commit
5651ad475d
83 files changed
+395
-469
No files matched your search
@@ -1,6 +1,5 @@
|
||||
import { browser } from '$app/environment'
|
||||
import type { Community } from 'lemmy-js-client'
|
||||
import { writable } from 'svelte/store'
|
||||
|
||||
interface SessionStorage {
|
||||
lastSeenCommunity: Community | undefined
|
||||
@@ -35,9 +34,3 @@ export const getSessionStorage = (
|
||||
if (!browser) return
|
||||
return JSON.parse(sessionStorage.getItem(key)!)
|
||||
}
|
||||
|
||||
interface Route {
|
||||
title: string
|
||||
}
|
||||
|
||||
export const route = writable<Route | undefined>(undefined)
|
||||
Reference in new issue
Block a user