ylem
ylem copied to clipboard
Ylem not passing props into another ylem compoennt
Here is a weird bug: https://codesandbox.io/s/wwwzqrqr7k
If you un-comment the mapProps() bit, which should essentially be a no-op, it starts working as expected.
So... that's kind of weird.
I bet it has to do with how the actual prop is not the object that is returned when you request props. If one were to check the values of the props passed into the second connect component, i bet they would be the { _observable: ... } object, instead of the observable itself.
If this is deemed needing to be fixed, it might be as simple as detecting this special key and using its value instead of the whole props object inside updateObservableWithProps.