Schema filtering and a bunch of fixes

This commit is contained in:
Gregory Schier
2025-07-09 12:39:27 -07:00
parent a03ec8875c
commit 036e85d006
6 changed files with 473 additions and 129 deletions

View File

@@ -3,5 +3,5 @@ import { useCallback, useState } from 'react';
export function useToggle(initialValue = false) {
const [value, setValue] = useState<boolean>(initialValue);
const toggle = useCallback(() => setValue((v) => !v), []);
return [value, toggle] as const;
return [value, toggle, setValue] as const;
}