helix

liebs 2023-05-15T20:50:02.240459Z

Hi, thanks for Helix, it's great! Wondering about suspense : it says on the React docs it doesn't support data fetched through effects or event handlers. Is there some hack to get around this?

hifumi123 2023-05-15T21:32:58.777959Z

Probably, but I'd note this part of documentation: > The requirements for implementing a Suspense-enabled data source are unstable and undocumented.

hifumi123 2023-05-15T21:34:23.940639Z

The issue I see with data fetching in an effect is that effects run after some component mounts and Suspense more or less expects a dynamic import of a component to happen before it stops showing the fallback element

hifumi123 2023-05-15T21:34:58.437649Z

so youd have to somehow tie the effect and the lazy loading component together; I dont see an easy way of doing this