remove console log
This commit is contained in:
parent
6e060da237
commit
6833b2bd75
@ -50,5 +50,8 @@
|
|||||||
"tslib": "^2.4.0",
|
"tslib": "^2.4.0",
|
||||||
"typescript": "^4.9.4",
|
"typescript": "^4.9.4",
|
||||||
"ws": "7.4.5"
|
"ws": "7.4.5"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@types/chrome": "0.0.197"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -50,7 +50,6 @@ export function useLocalStorage(
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
return storage.onUpdate(key, () => {
|
return storage.onUpdate(key, () => {
|
||||||
const newValue = storage.get(key);
|
const newValue = storage.get(key);
|
||||||
console.log("new value", key, newValue);
|
|
||||||
setStoredValue(newValue ?? initialValue);
|
setStoredValue(newValue ?? initialValue);
|
||||||
});
|
});
|
||||||
}, []);
|
}, []);
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
"moduleResolution": "Node16",
|
"moduleResolution": "Node16",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"lib": [
|
"lib": [
|
||||||
|
"DOM",
|
||||||
"es6"
|
"es6"
|
||||||
],
|
],
|
||||||
"outDir": "lib",
|
"outDir": "lib",
|
||||||
|
Loading…
Reference in New Issue
Block a user