tangled
alpha
login
or
join now
dunkirk.sh
/
pstream-ng
1
fork
atom
pstream is dead; long live pstream
taciturnaxolotl.github.io/pstream-ng/
1
fork
atom
overview
issues
pulls
pipelines
Merge remote-tracking branch 'upstream/dev'
dunkirk.sh
5 days ago
d54190d0
ad84924d
verified
This commit was signed with the committer's
known signature
.
dunkirk.sh
SSH Key Fingerprint:
SHA256:DqcG0RXYExE26KiWo3VxJnsxswN1QNfTBvB+bdSpk80=
+1
-4
2 changed files
expand all
collapse all
unified
split
src
hooks
useSettingsState.ts
pages
Settings.tsx
-4
src/hooks/useSettingsState.ts
···
2
Dispatch,
3
SetStateAction,
4
useCallback,
5
-
useEffect,
6
useMemo,
7
useState,
8
} from "react";
···
14
initial: T,
15
): [T, Dispatch<SetStateAction<T>>, () => void, boolean] {
16
const [overwrite, setOverwrite] = useState<T | undefined>(undefined);
17
-
useEffect(() => {
18
-
setOverwrite(undefined);
19
-
}, [initial]);
20
const changed = useMemo(
21
() =>
22
JSON.stringify(overwrite) !== JSON.stringify(initial) &&
···
2
Dispatch,
3
SetStateAction,
4
useCallback,
0
5
useMemo,
6
useState,
7
} from "react";
···
13
initial: T,
14
): [T, Dispatch<SetStateAction<T>>, () => void, boolean] {
15
const [overwrite, setOverwrite] = useState<T | undefined>(undefined);
0
0
0
16
const changed = useMemo(
17
() =>
18
JSON.stringify(overwrite) !== JSON.stringify(initial) &&
+1
src/pages/Settings.tsx
···
667
} else {
668
setCustomThemeBaseline(useThemeStore.getState().customTheme);
669
}
0
670
}
671
};
672
loadSettings();
···
667
} else {
668
setCustomThemeBaseline(useThemeStore.getState().customTheme);
669
}
670
+
state.reset();
671
}
672
};
673
loadSettings();