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
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for HookUpdater
impl !Send for HookUpdater
impl !Sync for HookUpdater
impl Unpin for HookUpdater
impl !UnwindSafe for HookUpdater
Blanket Implementations
Mutably borrows from an owned value. Read more