mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 00:59:22 -05:00
marked potential improvement for the future
This commit is contained in:
parent
3243f693c9
commit
91278df889
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue