Become a member
to unlock all features

Create an egghead account to access 5000+ tutorials and resources from expert developers.

Create account

    Extract a custom useRequest hook to simplify fetching data in a react-blessed Application


    While extracting a custom useRequest hook from our Terminal React Dashboard we encounter a run-away useEffect bug. As a result we introduce the stop-runaway-react-effects tool to help detect the bug and then fix the it with useMemo and then the use-deep-compare-effect hook.