automerge-classic icon indicating copy to clipboard operation
automerge-classic copied to clipboard

Pass a path to the observed object to observable callback

Open ept opened this issue 4 years ago • 0 comments

Quick extension to the Observable API (#308) requested by @echarles: the callback function now receives an additional parameter containing the path from the root object to the object being observed. For example, if the observed object is root.todos[3].nested then the path is ['todos', 3, 'nested'].

ept avatar Feb 08 '21 18:02 ept