Class TJSSvelteUtil
Index
Constructors
Methods
Constructors
constructor
- new TJSSvelte
Util (): TJSSvelteUtil Returns TJSSvelteUtil
Methods
Static
isComponent
Static
isHMRProxy
Static
outroAndDestroy
- outro
And (instance): Promise<any>Destroy Runs outro transition then destroys Svelte component.
Workaround for https://github.com/sveltejs/svelte/issues/4056
Parameters
- instance: any
A Svelte component.
Returns Promise<any>
Promise returned after outro transition completed and component destroyed.
- instance: any
Various utilities to duck type / detect Svelte components and run outro transition while destroying a component externally.