Class TJSSvelteUtil
Index
Constructors
Methods
Constructors
constructor
- new TJSSvelteUtil(): TJSSvelteUtil
Returns TJSSvelteUtil
Methods
Static
isComponent
Static
isHMRProxy
Static
outroAndDestroy
- outroAndDestroy(instance: any): Promise<any>
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.