Skip to content

Commit

Permalink
Remove duplicate dispatchStorageEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
tylermcginnis committed Aug 28, 2023
1 parent 64f4467 commit 7dc2077
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -806,10 +806,6 @@ export function useLogger(name, ...rest) {
}, []);
}

const dispatchStorageEvent = (key, newValue) => {
window.dispatchEvent(new StorageEvent("storage", { key, newValue }));
};

const setLocalStorageItem = (key, value) => {
const stringifiedValue = JSON.stringify(value);
window.localStorage.setItem(key, stringifiedValue);
Expand Down

0 comments on commit 7dc2077

Please sign in to comment.