Data Router ยท console.warn
router.broadcast({ channel }) needs a string channel name; nothing was mirrored.
Printed by Data Router, prefixed [lattice], since 1.33.0.
Warnings reference › data-router:broadcast-channel
- Identifier
data-router:broadcast-channel- Raised by
- Data Router
- Since
- 1.33.0
What happened
broadcast() was called without a channel name, so there is nothing to name the channel after and no channel was opened. Any channel already open is left as it is.
The fix
Pass a channel name that every tab of your application agrees on.
The smallest fix
router.broadcast({ channel: 'orders-v1' });
Reference
Covered in full at the API reference.