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!