Skip to content

Commit c77c118

Browse files
committed
Fix stale onDismiss closure in useFlowHandlers
1 parent 34e28e9 commit c77c118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/src/hooks/useFlowHandlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function useFlowHandlers(flow: Flow, { onComplete, onDismiss }: FlowHandl
5656

5757
flow.skip()
5858
},
59-
[flow]
59+
[flow, onDismiss]
6060
),
6161
}
6262
}

0 commit comments

Comments
 (0)