Multiple Svelte CSUI injections

Sometimes, I'd like my extension to inject multiple components onto the web page, and some other times the web page is simply an SPA, so it happens that I will end up injecting multiple CSUIs Any projection on when Plasmo will support it?
7 Replies
lab
lab•2y ago
for multiple component you can add many csui files, wouldn't that work?
Avi
Avi•2y ago
Haven't tried it yet, but what about multiple CSUIs running on the same matches array?
lab
lab•2y ago
I tend to keep my csui lean and do one thing well
Avi
Avi•2y ago
What about sites like YouTube that are SPA?
lab
lab•2y ago
I'd use the uri of the current page and any context I have to render what is needed for each CSUI entry many CSUI can target the same set of matches
Avi
Avi•2y ago
Ok cool BTW what's the progress on the customizability of the MutationObserver?
lab
lab•2y ago
Check out the doc on CSUI lifecycle
Want results from more Discord servers?
Add your server