Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async Components #2336

Open
avalero opened this issue Feb 23, 2024 · 4 comments
Open

Async Components #2336

avalero opened this issue Feb 23, 2024 · 4 comments

Comments

@avalero
Copy link

avalero commented Feb 23, 2024

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

@marvinhagemeister
Copy link
Collaborator

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.

@vicary
Copy link

vicary commented Feb 26, 2024

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

@avalero
Copy link
Author

avalero commented Feb 28, 2024

Thanks!

@avalero avalero closed this as completed Feb 28, 2024
@marvinhagemeister
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants