Skip to content

Commit 25f4d2f

Browse files
committed
chore: remove autoCancel
It will be deprecated in leanprover/vscode-lean4#746.
1 parent 136730b commit 25f4d2f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

widget/src/RefreshComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function RefreshComponent(props: RefreshComponentProps): JSX.Elem
3737
}
3838
const ac = new AbortController()
3939
rs.call<RefreshComponentProps, null>('ProofWidgets.RefreshComponent.monitor', props,
40-
{ autoCancel: true, abortSignal: ac.signal })
40+
{ abortSignal: ac.signal })
4141
// Repeatedly await updates to the display
4242
loop(0)
4343
return () => {

widget/src/ofRpcMethod.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default React.memo((props: Props) => {
2525
} else {
2626
const ac = new AbortController()
2727
const res = rs.call<Props, Html>(RPC_METHOD, props,
28-
{ autoCancel: true, abortSignal: ac.signal })
28+
{ abortSignal: ac.signal })
2929
cancelRef.current = { fn: () => ac.abort() }
3030
return res
3131
}

0 commit comments

Comments
 (0)