@microsoft/fast-element > HydrationControllerCallbacks

HydrationControllerCallbacks interface

Lifecycle callbacks for element hydration events

Signature:

export interface HydrationControllerCallbacks<TElement extends HTMLElement = HTMLElement> 

Methods

Method

Description

elementDidHydrate(source)?

(Optional) Called after an individual element's hydration has finished

elementWillHydrate(source)?

(Optional) Called before an individual element's hydration begins

hydrationComplete()?

(Optional) Called after all elements have completed hydration

hydrationStarted()?

(Optional) Called once when the first element enters the hydration pipeline. This is the earliest point at which we know a component has been async-defined with defer-and-hydrate, a template is pending via <f-template>, and the element has needs-hydration.