1.0.3 • Published 1 month ago

state-signals v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 month ago

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!
1.0.3

1 month ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

12 months ago