From my point of view if you construct your getCropData inside a useCallback and adding the cropper as a dependency your problem will be solved because the state of your function will always sync with your data because of the dependency.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
From my point of view if you construct your
getCropData
inside a useCallback and adding thecropper
as a dependency your problem will be solved because the state of your function will always sync with your data because of the dependency.