baobab
baobab copied to clipboard
JavaScript & TypeScript persistent and optionally immutable data tree with cursors.
Hello @Yomguithereal! I get some silence from cursors when make some crazy monkey tree. ``` js var Baobab = require('baobab'); var _ = require('lodash'); var tree = new Baobab({ branch:...
In example https://github.com/Yomguithereal/baobab#events it says that both `'users'` and `['users', 'john']` cursors will be notified if John's firstname is changed. Is there a way to notify `['users', 'john']` only and...
My `validate` throws an error when attempting to assign the value `2` to the `foo` leaf. Since I didn't set `validationBehavior` to `notify`, when attempting such an assignment, an error...
Currently, i have a map which stores info about many thousands of images. The code path is generic, so that i can respond to HDD events, or a scan. But...
In production we turn off immutability for performance and I'm wondering if calls to `cursor.deepClone()` should/could be a no-op? The original intent behind `deepClone` was to get the object back...
Consider the following: ``` javascript let tree = new Baobab({ foo: { bam: 123 }, bar: monkey(['foo'], identity) }) tree.select('bar').on('update', e => { e.target.actualPathThatChanged // ['foo', 'bam'] e.target.path // 'bar'...
Hi there, is there something like `https://github.com/intelie/immutable-js-patch` for Baobab?
I really must be missing something, maybe someone can clue me in. Here is what I mean: ``` javascript var a = new Baobab({ b: 1 }) var c =...
Oh i spend so much time thinking about the title for this issue. Let me show you an example so it will explain it better. Let's assume that i have...