This commit is contained in:
Henry Dollman
2024-07-13 12:41:05 -04:00
parent 7e834429cc
commit 86cfa5079e
8 changed files with 74 additions and 62 deletions

View File

@@ -19,11 +19,11 @@ export const navigate = (urlString: string) => {
$router.open(urlString)
}
export const $servers = atom([] as SystemRecord[])
export const $authenticated = atom(pb.authStore.isValid)
pb.authStore.onChange(() => {
$authenticated.set(pb.authStore.isValid)
})
export const $servers = atom([] as SystemRecord[])
export const $publicKey = atom('')