I am using Cropperjs library along with Phoenix LiveView. The cropper object is initialized inside
mounted callback inside Client Hooks. Cropperjs methods are working in
There are two components:
- ChildComponent (this has LiveView JS hook mounted)
ChildComponent has phx-hook. When I update the ChildComponent (where I display the cropperjs object) from ParentComponent via send_update which is handled by
updated callback, CropperJS methods won’t work.