MutationObserver feature support for node module's global object or specific objects. #46858
Unanswered
ganeshkbhat
asked this question in
General
Replies: 3 comments 1 reply
-
I think the MutationObserver is used to observe DOM, what you want is probably Proxy or defineProperty. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@meixg is right. I'll convert this to a discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@meixg @bnoordhuis Do you think considering this for global object observer is a good thought? I do think so. However, this is a memory leak risk. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is the problem this feature will solve?
Compatibility with Nodejs? MutationObserver will support Observers on global object or specific objects.
What is the feature you are proposing to solve the problem?
Can I use this MutationObserver for node module's objects declaration tracking and observing declared objects on current nodejs version 18.14.2 LTS, and 19.7.0 Current? Any polyfill also should do.
https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver
What alternatives have you considered?
None. Recommendation for support of similar feature; alternatively.
Beta Was this translation helpful? Give feedback.
All reactions