Allow to chain libraries by applying side effects to certain nodes of interest
danieldietrich opened this issue · comments
If a web component is loaded lazily using <web-import>
for example, then there might be a style post-processor needed like TailwindCSS.
This can be achieved by passing a processor aka effect during initialization to Candid. When the DOM changes (e.g. because new web components are imported) then the effect is applied to the new nodes.
Candid itself also returns an effect that can be applied by other libraries when DOM nodes change (are added).