From 91278df889ed96e4179cf46460b4ff08c3e8aefa Mon Sep 17 00:00:00 2001 From: Maccesch Date: Sun, 11 Feb 2024 12:23:01 +0000 Subject: [PATCH] marked potential improvement for the future --- src/storage/use_storage.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/storage/use_storage.rs b/src/storage/use_storage.rs index d773e81..5b5f3d1 100644 --- a/src/storage/use_storage.rs +++ b/src/storage/use_storage.rs @@ -152,6 +152,7 @@ where let key = key.to_owned(); let on_error = on_error.to_owned(); queue_microtask(move || { + // TODO : better to use a BroadcastChannel (use_broadcast_channel)? // Note: we cannot construct a full StorageEvent so we _must_ rely on a custom event let mut custom = web_sys::CustomEventInit::new(); custom.detail(&JsValue::from_str(&key));