mirror of
https://github.com/woutdp/live_svelte
synced 2026-05-24 09:28:21 +00:00
Fix client flashing (#125)
This commit is contained in:
parent
d4e3c14036
commit
72be602d79
1 changed files with 3 additions and 1 deletions
|
|
@ -122,7 +122,9 @@ export function getHooks(components) {
|
|||
},
|
||||
|
||||
destroyed() {
|
||||
this._instance.$destroy()
|
||||
if (this._instance) {
|
||||
window.addEventListener("phx:page-loading-stop", () => this._instance.$destroy(), {once: true})
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue