Skip to content

Commit 3c89a67

Browse files
committed
Fix dependencies for Flow onComplete
1 parent 51f0e53 commit 3c89a67

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
@@ -42,7 +42,7 @@ export function useFlowHandlers(flow: Flow, { onComplete, onDismiss }: FlowHandl
4242
return () => {
4343
callHandler()
4444
}
45-
}, [flow, onComplete])
45+
}, [flow, flow?.isCompleted, onComplete])
4646

4747
return {
4848
handleDismiss: useCallback<DismissHandler>(

0 commit comments

Comments
 (0)