state-signals
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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!

Readme

Keywords

none

Package Sidebar

Install

npm i state-signals

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

11.4 kB

Total Files

9

Last publish

Collaborators

  • sjeiti