Yomguithereal / baobab-react

React integration for Baobab.
MIT License
309 stars 38 forks source link

action function returns TypeError #85

Closed henriklundgren closed 8 years ago

henriklundgren commented 8 years ago

Uncaught TypeError: path.some is not a function.

Yomguithereal commented 8 years ago

Hello @henriklundgren. Could you provide some more context to your issue. I cannot do anything really without more information. Thanks.

henriklundgren commented 8 years ago

Sure, https://gist.github.com/henriklundgren/c152827339684b6c2169

demux commented 8 years ago

line 36 Each cursor needs to be a list.

It would probably not be a bad idea to have baobab-react either forgive this or throw a more helpful exception.

henriklundgren commented 8 years ago

@demux solved it.

Though, the changes aren't propagating to the view. I would assume it has something about React not knowing the previous state.

Yomguithereal commented 8 years ago

Yes, this is strange that this won't be allowed by the library. It would be consistent with the lib's polymorphisms.

Yomguithereal commented 8 years ago

Just opened #86 for it.