useAffect
React hook for async side effects
Last updated
React hook for async side effects
Last updated
Source code is hosted on GitHub
This library is built on top of this package:
Takes a function or an instance of Async
, invokes it immediately, and keeps the state in sync with React. Function or Async instance may return an unsubscribe callback that is invoked before the component is unmounted.
This hook is especially useful when working with various subscription based data streams: