Frameright / Frameright/react-image-display-control

Listen to children's change in `src=`

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
28
Forks
3
PR merge metrics
No merged PRs in 30d

Description

```html

```

In case the child's `src=` is constructed for example based on its state, updated later asynchronously by a `useEffect()`, we (the parent ``) 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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.