Skip to content

Commit 55fc642

Browse files
committed
chore: fixed timeout reset bug
1 parent 7608453 commit 55fc642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/basic/lib/src/use_timeout_fn.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ TimeoutState useTimeoutFn(VoidCallback fn, Duration delay) {
3434
timeout.value?.cancel();
3535
}, const []);
3636

37-
final state = useRef(TimeoutState(getIsReady, reset, cancel));
37+
final state = useRef(TimeoutState(getIsReady, cancel, reset));
3838

3939
// set on mount, clear on unmount
4040
useEffect(() {

0 commit comments

Comments
 (0)