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