Skip to content

Commit 7dc2077

Browse files
committed
Remove duplicate dispatchStorageEvent
1 parent 64f4467 commit 7dc2077

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -806,10 +806,6 @@ export function useLogger(name, ...rest) {
806806
}, []);
807807
}
808808

809-
const dispatchStorageEvent = (key, newValue) => {
810-
window.dispatchEvent(new StorageEvent("storage", { key, newValue }));
811-
};
812-
813809
const setLocalStorageItem = (key, value) => {
814810
const stringifiedValue = JSON.stringify(value);
815811
window.localStorage.setItem(key, stringifiedValue);

0 commit comments

Comments
 (0)