1.0.5 • Published 1 year ago

state-signals v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year 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.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago