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
2
Dispatch,
3
3
SetStateAction,
4
4
useCallback,
5
5
-
useEffect,
6
5
useMemo,
7
6
useState,
8
7
} from "react";
···
14
13
initial: T,
15
14
): [T, Dispatch<SetStateAction<T>>, () => void, boolean] {
16
15
const [overwrite, setOverwrite] = useState<T | undefined>(undefined);
17
17
-
useEffect(() => {
18
18
-
setOverwrite(undefined);
19
19
-
}, [initial]);
20
16
const changed = useMemo(
21
17
() =>
22
18
JSON.stringify(overwrite) !== JSON.stringify(initial) &&
+1
src/pages/Settings.tsx
···
667
667
} else {
668
668
setCustomThemeBaseline(useThemeStore.getState().customTheme);
669
669
}
670
670
+
state.reset();
670
671
}
671
672
};
672
673
loadSettings();