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

Is there any rough timeline for when Suspense is production-ready? #2915

Closed
coldshower opened this issue Jan 8, 2021 · 6 comments
Closed

Comments

@coldshower
Copy link

Hey everyone,

Really loving preact and all you do. Thank you so much for making this excellent piece of engineering.

https://preactjs.com/guide/v10/switching-to-preact#suspense-experimental

I noticed that while Suspense is available, it isn't recommended for use in production. Was just wondering if there was any rough timeline on when it is expected to become production ready?

Thanks again!!

@developit
Copy link
Member

There is a significant rewrite underway that we aim to land as Preact 11. One of the important part of this is to firm up Suspense support, at which point we'll likely un-mark it as experimental.

@coldshower
Copy link
Author

Thank you Jason!

@coldshower
Copy link
Author

@developit just thought I would ask, but is there any documentation or resource you know of on how lazy loading would be done without Suspense in preact?

@developit
Copy link
Member

We currently recommend using Preact's suspense mechanic. You can see a very small but complete example of this in preact-iso:

https://github.com/preactjs/wmr/blob/master/packages/preact-iso/lazy.js

@VishalGulati
Copy link

@developit - Hey Jason, is there any update on this?

@Eduardowm

This comment was marked as off-topic.

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

No branches or pull requests

5 participants