baobab
baobab copied to clipboard
JavaScript & TypeScript persistent and optionally immutable data tree with cursors.
Hi, I'm confused by the result of calling `apply` on a cursor pointing at a list. Looking at the documentation and the function's name, to me it would seem that...
I found the odd behavior of update handler and merge. Example: ``` const tree = new Baobab(); tree.set('test', {}); tree.select('test', 'value').set(1); // Add update event handler tree.select('test', 'value').on('update', (e) =>...
Hi, I think that throw Error is unnecessary, becouse if in the tree is stored value that returns false in the if condition you can't use methods .undo (), because...
I caught some problem when I tried to merge the following object with nested monkey: ``` tree = new Baobab({ a: 1, nested: [] }) tree.set(['nested', '0', 'dynamic'], Baobab.monkey(['a'], (a)...
[Here](https://github.com/drone/drone-ui/blob/7ff99eca/src/actions/tree.js#L17) drone-ui is constructing a Baobab tree with a document.location. Starting with Firefox 49, this fails with `TypeError: can't prevent extensions on this proxy object`. May it be that Baobab...
Found some strange case for dynamic path monkey selection from empty monkey collection. Case work only if monkey field with dynamic selection path will be set to already created Baobab...
Found some strange behaviour for monkey field with dynamic path selection. Made [PR](https://github.com/Yomguithereal/baobab/pull/458) with test-case for it.
Proposal for create a examples folder,If you Okay i will give the Pull Request
When setting a parent path, cursors of child paths are notified of `'update'` events, even if the values at the child paths didn't change. Repro steps: ``` var assert =...