Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: performance
Choose a base branch
from

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