Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

LifecycleHooks

interface LifecycleHooks <TProps = Props> {
onAfterUpdate(instance: Instance<TProps>, partialProps: Partial<TProps>): void;
onBeforeUpdate(instance: Instance<TProps>, partialProps: Partial<TProps>): void;
onClickOutside(instance: Instance<TProps>, event: Event): void;
onCreate(instance: Instance<TProps>): void;
onDestroy(instance: Instance<TProps>): void;
onHidden(instance: Instance<TProps>): void;
onHide(instance: Instance<TProps>): void | false;
onMount(instance: Instance<TProps>): void;
onShow(instance: Instance<TProps>): void | false;
onShown(instance: Instance<TProps>): void;
onTrigger(instance: Instance<TProps>, event: Event): void;
onUntrigger(instance: Instance<TProps>, event: Event): void;
}

§Type Parameters

§
TProps = Props
[src]

§Methods

§
onAfterUpdate(instance: Instance<TProps>, partialProps: Partial<TProps>): void
[src]
§
onBeforeUpdate(instance: Instance<TProps>, partialProps: Partial<TProps>): void
[src]
§
onClickOutside(instance: Instance<TProps>, event: Event): void
[src]
§
onCreate(instance: Instance<TProps>): void
[src]
§
onDestroy(instance: Instance<TProps>): void
[src]
§
onHidden(instance: Instance<TProps>): void
[src]
§
onHide(instance: Instance<TProps>): void | false
[src]
§
onMount(instance: Instance<TProps>): void
[src]
§
onShow(instance: Instance<TProps>): void | false
[src]
§
onShown(instance: Instance<TProps>): void
[src]
§
onTrigger(instance: Instance<TProps>, event: Event): void
[src]
§
onUntrigger(instance: Instance<TProps>, event: Event): void
[src]