Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Address observer not watch for DOM update #138

Merged
merged 9 commits into from
Sep 20, 2024
Merged

Conversation

roderickhsiao
Copy link
Owner

As react ref won't trigger re-render (or effect), if a ref is passing in and later update (e.g. null -> DOM), the library won't be able to detect the change.

adding mutation observer should fix the issue #134

@roderickhsiao roderickhsiao merged commit 7ba72f9 into main Sep 20, 2024
5 checks passed
@roderickhsiao roderickhsiao deleted the dom-update branch September 20, 2024 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant