recall-point

0.0.3 • Public • Published

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

Package Sidebar

Install

npm i recall-point

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • negamaxi