Skip to content

Commit 75f83a2

Browse files
committed
Use the runId as the ID key to bust the cache after triggering
1 parent f65e0f0 commit 75f83a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-hooks/src/hooks/useTaskTrigger.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export function useRealtimeTaskTriggerWithStreams<
9696
const triggerInstance = useTaskTrigger<TTask>(id, options);
9797
const realtimeInstance = useRealtimeRunWithStreams<TTask, TStreams>(triggerInstance.handle?.id, {
9898
...options,
99+
id: triggerInstance.handle?.id,
99100
accessToken: triggerInstance.handle?.publicAccessToken ?? options?.accessToken,
100101
});
101102

0 commit comments

Comments
 (0)