Skip to content

Pass a path to the observed object to observable callback#315

Open
ept wants to merge 1 commit intoperformancefrom
observable-path
Open

Pass a path to the observed object to observable callback#315
ept wants to merge 1 commit intoperformancefrom
observable-path

Conversation

@ept
Copy link
Member

@ept ept commented Feb 8, 2021

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 ept mentioned this pull request Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant