You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case the child's src= is constructed for example based on its state, updated later asynchronously by a useEffect(), we (the parent <ImageDisplayControl>) won't notice the change, and so we won't fetch the new image regions corresponding to the new image.
How to solve this? With a MutationObserver? With some kind of subscription to the children's React states?
The text was updated successfully, but these errors were encountered:
In case the child's
src=
is constructed for example based on its state, updated later asynchronously by auseEffect()
, we (the parent<ImageDisplayControl>
) won't notice the change, and so we won't fetch the new image regions corresponding to the new image.How to solve this? With a
MutationObserver
? With some kind of subscription to the children's React states?The text was updated successfully, but these errors were encountered: