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

Listeners may not see the latest data. #14

Closed
mbostock opened this issue May 13, 2016 · 1 comment
Closed

Listeners may not see the latest data. #14

mbostock opened this issue May 13, 2016 · 1 comment

Comments

@mbostock
Copy link
Member

mbostock commented May 13, 2016

If data changes during a drag gesture, listeners do not receive the latest data because it was captured in the arguments when the gesture started. Maybe this is okay, if we document it? Alternatively, the drag gesture would need to capture the index and the group, but retrieve the data from node.__data__.

@mbostock mbostock changed the title If data changes during a drag gesture, listeners do not see the latest data. Listeners may not see the latest data. May 13, 2016
@mbostock
Copy link
Member Author

mbostock commented Aug 5, 2019

This should be fixed as part of the upgrade to d3-selection@2, which removes d3.event, and means we can easily pass the latest data.

@Fil Fil closed this as completed Aug 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants