1
0
Fork 0
mirror of synced 2024-07-03 13:30:46 +12:00

Unset app ID from builder store when unmounting to prevent stale app ID header

This commit is contained in:
Andrew Kingston 2022-05-10 18:43:34 +01:00
parent 0f82af036d
commit a9f64abb78

View file

@ -7,7 +7,7 @@
import { API } from "api"
import { isActive, goto, layout, redirect } from "@roxi/routify"
import { capitalise } from "helpers"
import { onMount } from "svelte"
import { onMount, onDestroy } from "svelte"
export let application
@ -66,6 +66,13 @@
hasSynced = true
}
})
onDestroy(() => {
store.update(state => {
state.appId = null
return state
})
})
</script>
{#await promise}