diff --git a/.yarn/patches/usehooks-ts-npm-2.7.2-fceffe0e43.patch b/.yarn/patches/usehooks-ts-npm-2.7.2-fceffe0e43.patch new file mode 100644 index 000000000..1dc65fe13 --- /dev/null +++ b/.yarn/patches/usehooks-ts-npm-2.7.2-fceffe0e43.patch @@ -0,0 +1,13 @@ +diff --git a/dist/esm/useLocalStorage/useLocalStorage.js b/dist/esm/useLocalStorage/useLocalStorage.js +index b0d584d4df29953551dfcf8febac002f89fa7acd..920ae5c52d28af73e3a892bdb935a7805a0f8224 100644 +--- a/dist/esm/useLocalStorage/useLocalStorage.js ++++ b/dist/esm/useLocalStorage/useLocalStorage.js +@@ -14,7 +14,7 @@ function useLocalStorage(key, initialValue) { + return initialValue; + } + }, [initialValue, key]); +- const [storedValue, setStoredValue] = useState(readValue); ++ const [storedValue, setStoredValue] = useState(initialValue); + const setValue = useEventCallback(value => { + if (typeof window === 'undefined') { + console.warn(`Tried setting localStorage key “${key}” even though environment is not a client`); diff --git a/package.json b/package.json index de33e7dea..2227a7e37 100644 --- a/package.json +++ b/package.json @@ -32,5 +32,8 @@ "devDependencies": { "husky": "^8.0.1", "lint-staged": "^13.0.3" + }, + "resolutions": { + "usehooks-ts@^2.7.2": "patch:usehooks-ts@npm:^2.7.2#./.yarn/patches/usehooks-ts-npm-2.7.2-fceffe0e43.patch" } } diff --git a/yarn.lock b/yarn.lock index 5cb71015c..062e1374e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13215,12 +13215,22 @@ __metadata: linkType: hard "usehooks-ts@npm:^2.7.2": - version: 2.7.2 - resolution: "usehooks-ts@npm:2.7.2" + version: 2.9.1 + resolution: "usehooks-ts@npm:2.9.1" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 + checksum: 36f1e4142ce23bc019b81d2e93aefd7f2c350abcf255598c21627114a69a2f2f116b35dc3a353375f09c6e4c9b704a04f104e3d10e98280545c097feca66c30a + languageName: node + linkType: hard + +"usehooks-ts@patch:usehooks-ts@npm:^2.7.2#./.yarn/patches/usehooks-ts-npm-2.7.2-fceffe0e43.patch::locator=se-2%40workspace%3A.": + version: 2.9.1 + resolution: "usehooks-ts@patch:usehooks-ts@npm%3A2.9.1#./.yarn/patches/usehooks-ts-npm-2.7.2-fceffe0e43.patch::version=2.9.1&hash=68bde7&locator=se-2%40workspace%3A." peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - checksum: c4edfc53aa60f6c107c8724dbd60c06b5888f1905091797c1639255924dd45ea337355c5d51e4826f7f07c0167742f9f2d3bf23e11fb6d9b15ad7abe01d1d51d + checksum: 6807ae0e6ffd158790e5018d3a322efd0fe97853b6b83751725e5e81d0962cb6230ca65a24341bb5cee3f1bc330721611440c399fc950723153c5cc61eb74b04 languageName: node linkType: hard