mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
use_state: fix/clarify docstring (#3570)
Signed-off-by: Yann Dirson <ydirson@free.fr>
This commit is contained in:
parent
b25703a035
commit
16f26d82e7
@ -63,8 +63,8 @@ where
|
||||
/// # Caution
|
||||
///
|
||||
/// The value held in the handle will reflect the value of at the time the
|
||||
/// handle is returned by the `use_reducer`. It is possible that the handle does
|
||||
/// not dereference to an up to date value if you are moving it into a
|
||||
/// handle is returned by the `use_state()` call. It is possible that the handle does
|
||||
/// not dereference to an up to date value, for example if you are moving it into a
|
||||
/// `use_effect_with` hook. You can register the
|
||||
/// state to the dependents so the hook can be updated when the value changes.
|
||||
///
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user