preact icon indicating copy to clipboard operation
preact copied to clipboard

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

Open coldshower opened this issue 3 years ago • 6 comments

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!!

coldshower avatar Jan 08 '21 21:01 coldshower

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.

developit avatar Jan 08 '21 21:01 developit

Thank you Jason!

coldshower avatar Jan 11 '21 15:01 coldshower

@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?

coldshower avatar Jan 15 '21 21:01 coldshower

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

developit avatar Jan 16 '21 01:01 developit

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

VishalGulati avatar Aug 08 '23 05:08 VishalGulati

+1

Eduardowm avatar Sep 18 '23 11:09 Eduardowm