createWire
Supplies a value to a Tag.
createWire(config)— Returns a Wireconfig.from— ASpot, or a record or array of Spotsconfig.to— A Tag, or a record or array of Tags; must matchfrom’s shapewire.name— Destination Tag names joined with+wire.kind— Literal string"wire"
const userId = tag<number>("userId")
createWire({ from: user.result.id, to: userId })
const userRole = tag<number>("userRole")
createWire({ from: { id: user.result.id, role: user.result.role }, to: { id: userId, role: userRole },})
createWire({ from: [user.result.id, user.result.role], to: [userId, userRole],})