Skip to main content

Life Cycle API

Provides API to register hooks which will be executed on life cycle events

lifecycle : lifecycle

Accepts object of lifecycle hooks

The overrides are applied by passing the object under the top-level lifecycle key to the Customization API config object.

Lifecycle Object Keys

KeyTypeDescription
useAfterEndCall?EndCallHookTypeHook that returns a function
useBeforeEndCall?EndCallHookTypeHook that returns a function

EndCallHookType

Hook that return a function

type EndCallHookType = () => (
isHost: boolean,
history: History,
) => Promise<void>;

Use the example code given below showcasing how to add the lifecycle events into the App Builder.