Creating and appending div element in getRootContainer results in infinite mounting loop #878
Unanswered
blhutchings
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
I'm trying to inject directly into the DOM to inherit the pages styles.
But I need to create a new div inside my target first so the sibling elements are not destroyed on mounting.
The general structure is
So I override
getRootContainer
based on the with-content-scripts-ui root container exampleThe rest of the content script is
The div does get mounted from
getRootContainer
But the life cycle does not seem to recogize it so it continuously runs.
It's stuck in a loop so it keeps spawning more and I don't know why.
I just want to create a div and insert my component in it.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions