10 ms·
How well do web components fit into astro pages? Do you get the same kind of partial hydration/load on first view semantics with them as it looks like you can
by qbasic_forever 5y ago
How well do web components fit into astro pages? Do you get the same kind of partial hydration/load on first view semantics with them as it looks like you can do with React/Vue/Svelte components?
- MatthewPhillips 5y agoNot yet, Lit has support for SSR in prerelease and we've experimented with supporting it. Once it's ready it will be included. In the meantime you can of course use web components (with any framework) like you normally would, just without SSR. Tracking issue for Lit support: https://github.com/snowpackjs/astro/issues/109 https://github.com/snowpackjs/astro/issues/109
- qbasic_forever 5y agoVery cool! Yeah I wish SSR was more of a thing in the web component world. Someday soon hopefully!
- MatthewPhillips 5y agoStencil support is being worked on too: https://github.com/snowpackjs/astro/pull/266 https://github.com/snowpackjs/astro/pull/266
- seanp2k2 5y agoAmusing to me to see the return to concepts that the dynamic web started with in the form of CGI, mod_perl, Cold Fusion, PHP, ASP.NET and all that. It’s the same, but different. Next we’ll be on to multi-tiered caching. What’s the difference conceptually between islands and e.g. Hole-punching in Varnish? The result in each case seems to be a site that is mostly static with some dynamic portions.