Struct yew::functional::HookUpdater[][src]

pub struct HookUpdater { /* fields omitted */ }
Expand description

The HookUpdater provides a convenient interface for hooking into the lifecycle of the underlying Yew Component that backs the function component.

Two interfaces are provided - callback and post_render.

  • callback allows the creation of regular yew callbacks on the host component.
  • post_render allows the creation of events that happen after a render is complete.

See use_effect and use_context for more details on how to use the hook updater to provide function components the necessary callbacks to update the underlying state.

Implementations

Callback which runs the hook.

Callback called after the render

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.