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
for multiple component you can add many csui files, wouldn't that work?
Haven't tried it yet, but what about multiple CSUIs running on the same
matches
array?I tend to keep my csui lean and do one thing well
What about sites like YouTube that are SPA?
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
Ok cool
BTW what's the progress on the customizability of the MutationObserver?
Check out the doc on CSUI lifecycle