How to mount a component to an asynchronously loaded element?
HI, I'm new to front-end and I'm trying to use plasmo for plugin development. The problem I have when I want to add a CSUI is that the DOM node that needs to be mounted is loaded asynchronously, and I don't know how to capture this asynchronously loaded out DOM node using plasmo.
I noticed that the official documentation says this: "Since the anchor-getter functions can be async, you also have the power to control when Plasmo mounts your component. For example, you can wait for a specific element to appear on the page before mounting your component."
That's what I'm trying to accomplish.
Can anyone provide me with some tips or code samples to guide me through this? Thank you very much!
0 Replies