The cropOverlay was created asynchronously inside a polling interval but returned synchronously as .current (null). By returning the ref itself, Editor.tsx reads .current at call time when the overlay actually exists.
The cropOverlay was created asynchronously inside a polling interval but returned synchronously as .current (null). By returning the ref itself, Editor.tsx reads .current at call time when the overlay actually exists.