add a test for the memo hook

This commit is contained in:
Evan Almloff committed 2024-03-11 15:33:46 -05:00
1 parent bbc81b8f9c
commit f51b5617e1
6 files changed
+115 -31

No files matched your search

+1
View File
@@ -6,6 +6,7 @@ use futures_util::StreamExt;
/// effects will always run after first mount and then whenever the signal values change
/// If the use_effect call was skipped due to an early return, the effect will no longer activate.
/// ```rust
/// # use dioxus::prelude::*;
/// fn app() -> Element {
/// let mut count = use_signal(|| 0);
/// //the effect runs again each time count changes