Module yewdux::functional
source · Expand description
The functional interface for Yewdux
Functions
- Note
- Provides access to some derived portion of state. Useful when you only want to rerender when that portion has changed.
- Similar to
use_selector
, with the additional flexibility of a custom equality check for selected value. - Similar to
use_selector_with_deps
, but also allows an equality function, similar touse_selector_eq
- Similar to
use_selector
, but also allows for dependencies from environment. This is necessary when the derived value uses some captured value. - This hook allows accessing the state of a store. When the store is modified, a re-render is automatically triggered.
- Simliar to [‘use_store’], but only provides the state.