remove once, restore use_hook

This commit is contained in:
Evan Almloff committed 2024-01-15 09:05:46 -06:00
1 parent 36e9eb1160
commit 01726d6656
9 files changed
+19 -23

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ async fn it_works() {
static POLL_COUNT: AtomicUsize = AtomicUsize::new(0);
fn app() -> Element {
once(|| {
use_hook(|| {
spawn(async {
for x in 0..10 {
tokio::time::sleep(Duration::from_micros(50)).await;