fresh icon indicating copy to clipboard operation
fresh copied to clipboard

Async Components

Open avalero opened this issue 1 year ago • 4 comments

Is there any way to define async components? It would be nice to be able to delegate server side data fetching to components.

avalero avatar Feb 23 '24 11:02 avalero

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 avatar Feb 23 '24 11:02 marvinhagemeister

@marvinhagemeister that was wonderful! Albeit no ETA, thanks for making true server components a reality.

vicary avatar Feb 26 '24 06:02 vicary

Thanks!

avalero avatar Feb 28 '24 22:02 avalero

Re-opening until we've landed truly async components.

marvinhagemeister avatar Feb 28 '24 22:02 marvinhagemeister