React library for the selection, edition and compression of images in png, jpeg and webp formats This package is made completely with html and css without any extra components or npm packages. It's based in functional components based in hooks, for optimization were used memo, useMemo and useCalback for avoiding any extra-renders.
there is problem of image loading again and again. Let me explain the scenario. i have a array of Object in which user can add new Object and Remove any Object. that Object has 3 properties. title, description and Icon (for Image). now we I load the Initial data if user has set them the array is looping and setting the image in imageSrcProp which call's the method imageChanged and there I am updating the state value which is causing the re-render in react. So it's just loading image again and again.
hi,
there is problem of image loading again and again. Let me explain the scenario. i have a array of Object in which user can add new Object and Remove any Object. that Object has 3 properties. title, description and Icon (for Image). now we I load the Initial data if user has set them the array is looping and setting the image in
imageSrcProp
which call's the methodimageChanged
and there I am updating the state value which is causing the re-render in react. So it's just loading image again and again.This is the code it's inside map function![image](https://github.com/josealejandro2928/react-image-picker-editor/assets/141009190/b26e40fb-0bbb-4f65-83bd-e2dd1cf48fff)