Bug: Children.map
raises error when passed async server component within client component
#28806
Labels
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
React version: 14.1.4
Steps To Reproduce
Child
Client
which accepts thechildren
prop and returnsChildren.map(children, (child) => child)
Parent
, and returnChild
insideClient
Link to code example: https://codesandbox.io/p/devbox/broken-water-4kktmz
The current behavior
Raises
Error: Objects are not valid as a React child (found: object with keys {$$typeof, _payload, _init}). If you meant to render a collection of children, use an array instead.
The expected behavior
Returns an unresolved Promise representing the child.
The text was updated successfully, but these errors were encountered: