A Signal/Slot implementation that retains state.
Signals are a simple but powerful way to communicate data between instances. Read the documentation for more info.
$ npm i -S state-signals
or
$ yarn add state-signals -S
import {createSignal} from 'state-signals'
const mySignal = createSignal('ehr')
mySignal.add(console.log.bind(console, 'Hello'))
// ... a few moments later
mySignal.dispatch('world!')
// outputs
// > Hello world!