Skip to content

docs(agents): type the React example's root id as ConversationId - #346

Merged
eersnington merged 1 commit into
feat/pi-table-prefixfrom
chore/docs-react-branded-id
Oct 8, 2026
Merged

eersnington merged 1 commit into
feat/pi-table-prefixfrom
chore/docs-react-branded-id

Conversation

@eersnington

@eersnington eersnington commented Oct 8, 2026 •

Copy link
Copy Markdown
Member
  • examples/docs/react-sdk/useAgentChat.ts stores the root conversation id as ConversationId, so submit and abort type-check now that the actions take Pi's branded ids.
-const [rootId, setRootId] = useState<number | null>(null);
+const [rootId, setRootId] = useState<ConversationId | null>(null);
  • The file is outside the examples type check until RivetKit types client event payloads, so CI does not catch this.

This is part 9 of 9 in a stack:

@eersnington eersnington changed the title docs(agents): keep the root conversation id branded in the React example docs(agents): type the React example's root id as ConversationId Oct 8, 2026
@eersnington
eersnington force-pushed the chore/docs-react-branded-id branch from c359b7e to d33a661 Compare October 8, 2026 15:40
@eersnington
eersnington added this pull request to stack #347 October 8, 2026 16:05
@eersnington
eersnington merged commit d00849b into main Oct 8, 2026
0 of 6 checks passed
@eersnington
eersnington deleted the chore/docs-react-branded-id branch October 8, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant