Suspense almost (but not quite!) working? #4303
-
Hi. I have an existing React project that relies on lazy and Suspense for code splitting. I tried switching it over to Preact with Compat. Firstly, I'm totally blown away that it 99% works with nothing more than some Webpack and Typescript aliasing. Very nice! In fact I can only find one problem: Some nested Suspense components don't immediately render when the lazy component is loaded. The Fallback shows correctly, the component is loaded, but no re-render. I know that Preact's Suspense is experimental, so I'm not totally surprised I'm having issues. I'm just wondering if anyone else has seen this and found a work-around? UPDATE: So it seems to be something about Suspense not re-rendering Portals? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Any chance you have a minimal example? |
Beta Was this translation helpful? Give feedback.
This is fixed in 10.20.2, sorry for the inconvenience