From 7b34c9d0c635cfc1ec8e3c948be59246549613d4 Mon Sep 17 00:00:00 2001 From: Maccesch Date: Wed, 2 Aug 2023 01:16:13 +0100 Subject: [PATCH] fixed get untracked warning in use_storage --- src/storage/use_storage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/use_storage.rs b/src/storage/use_storage.rs index 2f72857..24f0e0e 100644 --- a/src/storage/use_storage.rs +++ b/src/storage/use_storage.rs @@ -196,7 +196,7 @@ where let (data, set_data) = defaults.into_signal(cx); - let raw_init = data.get(); + let raw_init = data.get_untracked(); cfg_if! { if #[cfg(feature = "ssr")] { let remove: Box = Box::new(|| {});