fix(localStorage): solution to localStorage issue

Still need to find a good way to re-render
This commit is contained in:
Christopher committed 2021-01-08 21:48:24 +01:00
1 parent 07dc73f0cb
commit 5fdb9ba21c
7 files changed
+51 -53

No files matched your search

-1
View File
@@ -8,7 +8,6 @@ const configState = atom({
});
export const useConfig = (state: any = configState): any => {
const [, setVal] = useLocalStorage('');
const [config, _setConfig] = useRecoilState(state);
const setConfig = (key, value) => {