Alarms ยท console.warn
alarms.publish() needs a data router with addSource(); nothing was published.
Printed by Alarms, prefixed [lattice], since 1.71.0.
Warnings reference › alarms:publish-no-router
- Identifier
alarms:publish-no-router- Raised by
- Alarms
- Since
- 1.71.0
What happened
publish(router, kind) pushes every raise and clear into a router partition as keyed rows so an alarm grid can show them. The value passed has no addSource(), so it is not a data router and no rows were published.
The fix
Pass the router instance (createRouter()'s return, or the one an adapter exposes) and, optionally, the partition kind to publish under.
The smallest fix
alarms.publish(router, 'alarms');
router.attach(alarmGrid, 'alarms');
Reference
Covered in full at the API reference.