You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In eventData I get previous, currentData, AND paths, and transactions !
Is it possible to retrieve such info from a cursor set directly on a nested value ?, such as :
const cursor = tree.select('model', 'list1');
In the first case, the transaction gives the actual path of the event, giving the index of the targeted object of an array
In the second case, we only get the path of the cursor, not the affected element in the cursor's array
Thanks ! :)
The text was updated successfully, but these errors were encountered:
Indeed, the cursor event does not have the same precision but I think it was because the use case did not exist yet. What do you want to do with it at cursor level? Also I suspect this is thusly made because of performance reasons but I need to dig deep into the code to make sure of this.
I would have liked to handle updates differently for each of these big arrays, to prevent from having a "firehose situation" when reading directly updates from the tree.
That way I don't have to write logic for dispatching each event to each handler, it would be just a matter of attaching to different levels of the tree (kind of a subtree in the end !) :)
Hi !
I was playing around with the library and my use-case is using baobab on this stucture :
Let's create the tree like so
const tree = new Baobab(test);
If I attach my watcher on tree like so :
In eventData I get previous, currentData, AND paths, and transactions !
Is it possible to retrieve such info from a cursor set directly on a nested value ?, such as :
In the first case, the transaction gives the actual path of the event, giving the index of the targeted object of an array
In the second case, we only get the path of the cursor, not the affected element in the cursor's array
Thanks ! :)
The text was updated successfully, but these errors were encountered: