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

Method emitUpdated

packages/ai-client/src/devtools.ts:444–453  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

442 }
443
444 emitUpdated(): void {
445 if (!this.prepareForEmit()) {
446 return
447 }
448 emitAIDevtoolsEvent('hook:updated', {
449 ...this.createEnvelope('hook:updated'),
450 ...this.createMetadataPayload(),
451 lifecycle: 'active',
452 })
453 }
454
455 emitSnapshot(): void {
456 if (!this.prepareForEmit()) {

Callers 1

emitStateMethod · 0.45

Calls 4

prepareForEmitMethod · 0.95
createEnvelopeMethod · 0.95
createMetadataPayloadMethod · 0.95
emitAIDevtoolsEventFunction · 0.90

Tested by

no test coverage detected