You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a large list, something like move_to_top will trigger changes on every item in the list, which seems like overkill in most use cases.
If the :position field is a float, wouldn't it be easier to leverage more granularity in the position value so that moving an item in the list would affect only that single item?
That is, if my current list positions are 1, 2, 3 and I move 3 to the top, my new state could be 0.99, 1, 2, leaving the other two items in the list untouched.
I'm happy to work on a PR for this if it seems like something that would be acceptable.
The text was updated successfully, but these errors were encountered:
Hi @aaroncraigongithub, in my applications position is an integer. I think most developers do it that way. I guess you could have a detection of the type and act appropriately.
On a large list, something like move_to_top will trigger changes on every item in the list, which seems like overkill in most use cases.
If the :position field is a float, wouldn't it be easier to leverage more granularity in the position value so that moving an item in the list would affect only that single item?
That is, if my current list positions are 1, 2, 3 and I move 3 to the top, my new state could be 0.99, 1, 2, leaving the other two items in the list untouched.
I'm happy to work on a PR for this if it seems like something that would be acceptable.
The text was updated successfully, but these errors were encountered: