Patch Changes
49d7d04
#305 Thanks @mxschmitt! - Moved internal'resize'
listener to the layout effect since React 17 calls cleanups of regular effects asynchronously. This ensures that we don't ever try to access the already unmounted ref in our listener.