uxilab / uxi

UXI Core components - https://twitter.com/uxi_lab
https://www.uxilab.eu/
5 stars 1 forks source link

<Img /> should not use onload event, but it's own state for handling image loading #49

Closed denisflorkin closed 5 years ago

denisflorkin commented 5 years ago

This way, when react trashed an entire dom branch, image won't rerender (and fadeIn "again") because the state of the component will be preserved (but the dom node's one ill not)

denisflorkin commented 5 years ago

Closing this as it was badly disagnosed.

the issue were that the image were actually fully rerednered because of bad updates management.

So img is good