MCPcopy
hub / github.com/TanStack/ai / recordResultChange

Method recordResultChange

packages/ai-client/src/devtools.ts:1404–1411  ·  view source on GitHub ↗

Record state changes from the client and emit the matching snapshot.

()

Source from the content-addressed store, hash-verified

1402
1403 /** Record state changes from the client and emit the matching snapshot. */
1404 recordResultChange(): void {
1405 this.updateActiveRun({
1406 result: this.getCoreState().result,
1407 preview: this.createPreview(this.getCoreState().result),
1408 clearError: true,
1409 })
1410 this.emitState()
1411 }
1412
1413 recordLoadingChange(): void {
1414 this.updateActiveRun({ isLoading: this.getCoreState().isLoading })

Callers 2

setResultMethod · 0.45
setResultMethod · 0.45

Calls 3

updateActiveRunMethod · 0.95
createPreviewMethod · 0.95
emitStateMethod · 0.95

Tested by

no test coverage detected