-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Differ#getChanges() could return items for remove entries #6830
Comments
This comment has been minimized.
This comment has been minimized.
I've spiked this when trying to figure out why table reconversion fails: 77c8115. Looks easy to implement. It might be also required for table partial reconversion. The problem in tables touches the way how |
This will not work for the current It could be a new kind of conversion operation to handle but I don't know the impact of such change. So it is hard to tell. OTOH maybe the |
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
We've closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it). |
📝 Provide a description of the improvement
At the moment,
Differ#getChanges()
for "remove" entries does not return the removed item. Instead position and length are returned.What is returned now is fine for remove conversion but it feels bad when used in post-fixers. Now, if you want to react to removing particular element, you need to get changes together with changes in graveyard and check if the element was inserted into a graveyard. This is not intuitive at all.
Moreover, there are some difficulties when using the above "workaround". For example, I don't know from which position the element was removed.
The text was updated successfully, but these errors were encountered: