fix: decrease site fetches
This commit is contained in:
1 parent
b7038b1832
commit
da6f4bab6a
7 files changed
+30
-29
No files matched your search
@@ -39,12 +39,6 @@ export const getInstance = () => get(instance)
|
||||
|
||||
export const site = writable<GetSiteResponse | undefined>(undefined)
|
||||
|
||||
if (LINKED_INSTANCE_URL) {
|
||||
getClient(LINKED_INSTANCE_URL)
|
||||
.getSite({})
|
||||
.then((s) => site.set(s))
|
||||
}
|
||||
|
||||
export async function validateInstance(instance: string): Promise<boolean> {
|
||||
if (instance == '') return false
|
||||
|
||||
|
||||
Reference in new issue
Block a user