Closed vadimdemedes closed 4 years ago
After searching, if I press Escape to leave, I get this:
❯ node cli.js
› horse
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 the componentWillUnmount method.
in Emoj (created by Context.Consumer)
in Unknown
in App
Thanks for upgrading this. The changes look great and much more readable now with hooks.
Fixed everything, including that warning on exit:
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 the componentWillUnmount method.
in Emoj (created by Context.Consumer)
in Unknown
in App
Also rewritten the whole thing using hooks.