fresh
fresh copied to clipboard
Async Components
Is there any way to define async components? It would be nice to be able to delegate server side data fetching to components.
No, not at the moment. The closest we have is async routes, see https://fresh.deno.dev/docs/concepts/routes#async-route-components . Support for true async components in Preact on the server got merged a few days ago, and we'll likely adopt that model sometime in the future. There is no ETA for that yet though.
@marvinhagemeister that was wonderful! Albeit no ETA, thanks for making true server components a reality.
Thanks!
Re-opening until we've landed truly async components.