react-nil icon indicating copy to clipboard operation
react-nil copied to clipboard

Async components?

Open cah4a opened this issue 2 years ago • 2 comments
trafficstars

It would be awesome if the package supported RSC.

For now, it's throwing an error:

Objects are not valid as a React child (found: [object Promise]). 
If you meant to render a collection of children, use an array instead.

cah4a avatar Jun 22 '23 10:06 cah4a

This needs https://github.com/facebook/react/pull/25634 which requires React 18.3.0. We can bundle it if we're sure it won't harm previous versions to make package managers happy.

CodyJasonBennett avatar Jun 23 '23 00:06 CodyJasonBennett

Tried with [email protected].

It's started working with some fixes, but async components not working. Act hangs somewhere deep in the reconciler.

cah4a avatar Jun 23 '23 06:06 cah4a