Skip to content

Commit 3b762e4

Browse files
committed
fix: useTransition hook works correctly with a function argument. (pmndrs#2287)
1 parent 1e4406e commit 3b762e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/src/hooks/useTransition.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,9 @@ export function useTransition(
422422
}
423423
}
424424
}
425-
)
425+
);
426+
427+
if (ref) ref.start();
426428
},
427429
reset ? void 0 : deps
428430
)

0 commit comments

Comments
 (0)