How to Observe and Render a list of root containers
I want to implement a Linkedin comment assistant.
Each time user clicks Comment section, I want to add a RootContainer to (newly created DIV). There may be many DIVs, so render should continuously observe DOM changes and create new Container.
I tried to implement getInlineAnchorList() and custom render, but its not working.
any ideas/direction I need to go?
1 Reply
I came up with this code, that works fine
But I dont want to use shadow DOM, so I tried to implement getRootContainer(), but no matter what I do, render() function is being called in a loop.
Also Im gettins this console warning [Deprecation] Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event. What Im missing here?
Also Im gettins this console warning [Deprecation] Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event. What Im missing here?