useLayoutEffectAbortable
Custom useLayoutEffect with a unified cancellation mechanism to ensure complete cleanup and to prevent the warning that appears on old React version "Can't perform a React state update on an unmounted component".
Demo
INFO
The implementation is like that useEffectAbortable.
Please visit useEffectAbortable example to see how it works.
