automerge-classic
automerge-classic copied to clipboard
Pass a path to the observed object to observable callback
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']
.