ryansolid / dom-expressions

A Fine-Grained Runtime for Performant DOM Rendering
MIT License
863 stars 125 forks source link

`useAssets` is currently no-op in SSR if the markup doesn't have a `<head>` #202

Open lxsmnsyc opened 1 year ago

lxsmnsyc commented 1 year ago

useAssets relies on <head> to inject its markup, which feels off where in some cases some users would just render from the an specific root instead of the whole document, which also applies to Islands.

It would be helpful if useAssets doesn't rely on such mechanism. For instance, in my JSX library, stellis, I run the following checks: