ylem icon indicating copy to clipboard operation
ylem copied to clipboard

Ylem not passing props into another ylem compoennt

Open BigAB opened this issue 7 years ago • 1 comments

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.

BigAB avatar Sep 21 '18 06:09 BigAB

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.

christopherjbaker avatar Sep 21 '18 17:09 christopherjbaker