0.0.3 • Published 7 years ago

recall-point v0.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

Recall Point

Listen when functions get called

Installation

npm install recall-point

Usage

import createPoint from 'recall-point'

// create point
const point = createPoint(() => {
  // do some stuff
})

// pass function to state that will recalls each time state changes, returns { done } object
const listener = point(() => {
  console.log('point get called')
})

point()

//> point get called

License

MIT