pub struct HookUpdater { /* private fields */ }
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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert self to a value of a Properties struct.
Convert self to a value of a Properties struct.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.