What if data changes?
Astro: Ship Less JavaScript
11–20 of 171 posts
Re: Astro: Ship Less JavaScript
#12:wave: Hey everyone, one of the Astro creators here! Happy to talk Astro or answer any questions you have about what we're building. Our README has a bunch more info that we couldn't fit into the release post: https://github.com/snowpackjs/astro
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?
Tracking issue for Lit support: https://github.com/snowpackjs/astro/issues/109
Re: Astro: Ship Less JavaScript
#13:wave: Hey everyone, one of the Astro creators here! Happy to talk Astro or answer any questions you have about what we're building. Our README has a bunch more info that we couldn't fit into the release post: https://github.com/snowpackjs/astro
Hey! Do you have any live demos or real(ish) apps made with Astro that we could check out?
Re: Astro: Ship Less JavaScript
#14I read "how astro works" but I don't really get it. How can this work for dynamic content? Does it render every possible scenario? What if data changes?
Re: Astro: Ship Less JavaScript
#15Re: Astro: Ship Less JavaScript
#16I read "how astro works" but I don't really get it. How can this work for dynamic content? Does it render every possible scenario? What if data changes?
Currently you build a static site like you do with Gatsby or Jekyll or any other static site generator. In the future it will support dynamic server rendering.
Doesn't almost every large front end framework have a static site generator? I think Vue for example has it built in for example.
Why would anyone use this over the already existing one in their current ecosystem?
Re: Astro: Ship Less JavaScript
#17I read "how astro works" but I don't really get it. How can this work for dynamic content? Does it render every possible scenario? What if data changes?
edit: Island architecture background info: https://jasonformat.com/islands-architecture/
Re: Astro: Ship Less JavaScript
#18Earlier quoted context omitted.
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?
Not 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
Re: Astro: Ship Less JavaScript
#19Earlier quoted context omitted.
Currently you build a static site like you do with Gatsby or Jekyll or any other static site generator. In the future it will support dynamic server rendering.
Ok so it is a static site generator. Wasn't really obvious from the landing page. Doesn't almost every large front end framework have a static site generator? I think Vue for example has it built in for example. Why would anyone use this over the already existing one in their current ecosystem?
Astro focuses on partial hydration where you only load the JS for the specific components that need to run in the client. Very few tools and none of the framework SSG's that I'm aware of do this.
There's also a variety of other features that Astro brings, the blog post talks about them.
Re: Astro: Ship Less JavaScript
#20Earlier quoted context omitted.
Not 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
Very cool! Yeah I wish SSR was more of a thing in the web component world. Someday soon hopefully!