feat: migrate to react 19 (#3107)

This commit is contained in:
Lucas Smith
2026-08-17 16:58:11 +10:00
committed by GitHub
parent 283c6d274b
commit 779de01fe8
22 changed files with 1532 additions and 2395 deletions
@@ -8,7 +8,7 @@ type SaveRequest<T, R> = {
export const useAutoSave = <T, R = void>(onSave: (data: T) => Promise<R>, options: { delay?: number } = {}) => {
const { delay = 2000 } = options;
const saveTimeoutRef = useRef<NodeJS.Timeout>();
const saveTimeoutRef = useRef<NodeJS.Timeout | undefined>(undefined);
const saveQueueRef = useRef<SaveRequest<T, R>[]>([]);
const isProcessingRef = useRef(false);