Skip to content

Commit 98ef83b

Browse files
authored
Merge pull request #303 from ag-ui-protocol/chore/fix-persistence-of-doc-in-predicted-state-update-demo
chore: fix persistence of the generated document in predicted state update demo
2 parents 970a557 + 62e719f commit 98ef83b

File tree

2 files changed

+8
-8
lines changed
  • typescript-sdk/apps/dojo/src

2 files changed

+8
-8
lines changed

typescript-sdk/apps/dojo/src/app/[integrationId]/feature/predictive_state_updates/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ const DocumentEditor = () => {
244244
}}
245245
/>
246246
),
247-
});
247+
}, [agentState?.document]);
248248

249249
// Action to write the document.
250250
useCopilotAction({
@@ -278,7 +278,7 @@ const DocumentEditor = () => {
278278
}
279279
return <></>;
280280
},
281-
});
281+
}, [agentState?.document]);
282282

283283
return (
284284
<div className="relative min-h-screen w-full">

0 commit comments

Comments
 (0)