chore: upgrade to react 19

This commit is contained in:
wonfen
2025-05-14 10:47:33 +08:00
parent d1a2bd78d7
commit 1993e5dd51
7 changed files with 1245 additions and 1233 deletions

View File

@@ -29,13 +29,13 @@ export function GuardState<T>(props: Props<T>) {
const lockRef = useRef(false);
const saveRef = useRef(value);
const lastRef = useRef(0);
const timeRef = useRef<any>();
const timeRef = useRef<any>(undefined);
if (!isValidElement(children)) {
return children as any;
}
const childProps = { ...children.props };
const childProps = { ...(children.props as Record<string, any>) };
childProps[valueProps] = value;
childProps[onChangeProps] = async (...args: any[]) => {