4 ms·
To me no, it's not. It works well for some of the use cases, but if all you needed was offline rendering of your js in a build step to generate static html then
by kh_hk 1y ago
To me no, it's not. It works well for some of the use cases, but if all you needed was offline rendering of your js in a build step to generate static html then you really didn't need all that js to begin with. islands work until they don't, and a lot of stuff gets inlined too. I guess it's fine if you stop caring about the final build.
I feel a lot of the hype around Astro has more to do with vite than anything else. And there yes, without doubt, vite is amazing.
- rustc 1y ago> islands work until they don't Like when?
- kh_hk 1y agoSetting `client:load` and `client:visible` for (svelte) islands you want to run on the client ends up inlining script type modules all around the html. It looked like a big hack to me. On the positive side their use of web components is a nice bet.
- rustc 1y agoAnd does it break something? I was replying to "islands work until they don't".
- kh_hk 1y agoIt breaks the third wall.
- dannye 1y ago>> On the positive side their use of web components is a nice bet. Web Components are a JavaScript/ECMAscript standard. So this is like saying: _Their use of Arrays is a nice bet_
- kh_hk 1y agoWell I don't see other frameworks besides lit advocating for web components
- mceachen 1y agoNot the op, but I’d guess islands become a PITA when there is user-visible state that must be synchronized and rendered coherently across multiple islands.
- blackops03 1y ago[dead]