This is unreleased documentation for Yew Next version.
For up-to-date documentation, see the latest version on docs.rs.

Trait yew::functional::TearDown

source ·
pub trait TearDown: Sized + 'static {
    // Required method
    fn tear_down(self);
}
Expand description

Trait describing the destructor of use_effect hook.

Required Methods§

source

fn tear_down(self)

The function that is executed when destructor is called

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TearDown for ()

Implementors§

source§

impl<F: FnOnce() + 'static> TearDown for F