Skip to content

Commit 35ee3ab

Browse files
tim-smartdatner
authored andcommitted
add function to useResultCallback dependencies
1 parent f70c207 commit 35ee3ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useResultCallback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const makeUseResultCallback: <R>(
5454
interrupting = true
5555
Effect.runFork(Fiber.interruptFork(fiber))
5656
}
57-
}, [currentArgs])
57+
}, [f, currentArgs])
5858

5959
const run = useCallback((...args: Args) => {
6060
setCurrentArgs(Option.some(args))

0 commit comments

Comments
 (0)