mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-27 10:42:38 +01:00
Schema filtering and a bunch of fixes
This commit is contained in:
1 parent
a03ec8875c
commit
036e85d006
6 files changed
+473
-129
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user