Skip to content
CCinder
Cinder.onReflex

API Reference

Cinder.onReflex

Subscribe to reflex results emitted by the response layer.

Use onReflex() when you want to observe or augment user-facing response behavior after a command completes.

Example

ts
3 lines
Cinder.onReflex((result) => {
  console.log(result.kind, result.message);
});

What the handler receives

A CinderReflexResult containing:

  • ok
  • kind
  • message
  • spoken
  • intent
  • optional dispatch

When to use it

  • analytics or logging
  • custom UI notifications
  • integration tests
  • application-side reaction to reflex outcomes

Continue reading