state-signals
v1.0.5
Published
A Signal/Slot implementation that retains state.
Downloads
10
Readme
State Signals
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.
Install
$ npm i -S state-signals
or
$ yarn add state-signals -S
Usage
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!