react-request-hook icon indicating copy to clipboard operation
react-request-hook copied to clipboard

Feat: block state update on unmounted components

Open wangcch opened this issue 5 years ago • 0 comments

Warning: Can’t perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.

  1. feat(utils): useMountedState hook;
  2. fix: block state update on unmounted components

wangcch avatar Dec 05 '20 16:12 wangcch