Skip to content

Commit

Permalink
refactor: remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
hirotomoyamada committed Jun 12, 2023
1 parent d2da6cb commit 1a89b57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-olives-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@yamada-ui/use-local-storage': patch
---

Refactored the code.
2 changes: 0 additions & 2 deletions packages/hooks/use-local-storage/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ export const createStorage = <T>(type: StorageType, name: string) => {
}, [defaultValue, key])

useWindowEvent('storage', (event) => {
console.log(event)

if (event.storageArea === window[type] && event.key === key)
setValue(deserialize(event.newValue ?? undefined))
})
Expand Down

0 comments on commit 1a89b57

Please sign in to comment.