Hamming
PD🧩 Plasmo Developers
•Created by Hamming on 4/2/2024 in #👾extension
How to debug in vscode?
I'd like to try debugging my project in vscode, but I didn't find a tutorial in the official documentation
Anyone knows?
2 replies
PD🧩 Plasmo Developers
•Created by Hamming on 12/2/2023 in #🔰newbie
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!
3 replies