Format code

This commit is contained in:
Robin
2023-10-11 10:42:04 -04:00
parent b28e465122
commit 614bc82402
112 changed files with 628 additions and 602 deletions

View File

@@ -30,7 +30,7 @@ import {
*/
export const useReactiveState = <T>(
updateFn: (prevState?: T) => T,
deps: DependencyList
deps: DependencyList,
): [T, Dispatch<SetStateAction<T>>] => {
const state = useRef<T>();
if (state.current === undefined) state.current = updateFn();
@@ -61,7 +61,7 @@ export const useReactiveState = <T>(
}
setNumUpdates((n) => n + 1); // Force an update
},
[setNumUpdates]
[setNumUpdates],
),
];
};