-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provider to support children with observables #30
Comments
Yes, the current behaviour and workaround is mentioned in the README:
It should be possible to wrap
Hmm... That seems to be caused by having both a non-observable child and an observable child. You can e.g. explicitly give a key for the observable child BTW, note that you can also write |
https://codesandbox.io/s/yw63o1zr1x
Here's an example case where you need to explicitly use
<React.Fragment>
to wrapchildren
inside<Provider>
because one of the children is an observable (due toU.when(obs, value)
).It'd be preferable if karet's Provider would work out of the box with observable children.
Another thing here is that for some reason React is warning about missing keys when using children inside the React.Fragment. I think there has been issues with same thing previously but those were fixed?
The text was updated successfully, but these errors were encountered: