0

If I wrap a component in Suspense and its child does async work (or suspends for some other reason), then it gets rendered non-urgently when it's ready (based on this Interacting with the page before all the components have hydrated and this).

This would be interesting to take advantage of for non-critical components. However they don't necessarily do any async work.

Would wrapping a component in this case still provide a benefit regarding performance / "perceived interactivity" by rendering it non-urgently?

The react docs make no mention of how Suspense will behave if none of its children suspend.

Kroney
  • 73
  • 5

0 Answers0