WIP: Implement config in Frontend

This commit is contained in:
Simon Grimme
2024-09-10 16:28:26 +02:00
parent 0a3245ddf9
commit 3b97b6bbfa
23 changed files with 464 additions and 15697 deletions
@@ -0,0 +1,13 @@
import {useEffect, useRef} from "react";
export default function useUpdateEffect(effect: Function, dependencies?: [any]) {
const isInitialMount = useRef(true);
useEffect(() => {
if (isInitialMount.current) {
isInitialMount.current = false;
} else {
return effect();
}
}, dependencies);
}