Yomguithereal / baobab

JavaScript & TypeScript persistent and optionally immutable data tree with cursors.
MIT License
3.15k stars 117 forks source link

Cursor update event is not triggered when setting to false #446

Closed sebastiansandqvist closed 8 years ago

sebastiansandqvist commented 8 years ago

Given a cursor pointing to a boolean node in my tree and a listener on it which listens for the update event, I can only get that event to trigger when setting the cursor to true. Setting the cursor to false works properly in that I can verify that the value is actually false, but the update event never triggers for that case.

I'm using version 2.3.3.

Edit: Never mind. This works as expected and I just misinterpreted the results.