Closed FezVrasta closed 5 years ago
Render and children cannot be optional. Composability with type inference doesn't work yet. You may compose however you want without doubtful utilities.
const Composed = ({ children }) => (
<Value>
{dialog =>
<Value>
{mode =>
children({ dialog, mode })
}
</Value>
}
</Value>
)
If I do this:
I get:
if I do the same with other render-props components such as react-apollo's
Query
, it works just fine.Is there any chance to see this fixed?
edit: actually it happens even with the react-powerplug Compose utility