I have an issue with items reordering. I need to write controlled component so all state changes should go through Redux. But dragging an item using Redux is very slow so I will store item position internally.
When I stop dragging, the action is fired. There is two possible ways: 1. If I do nothing on the action function call, item should move to the initial position with animation. 2. If I change state in Redux, change item position, it should go to the new position with animation too.
How can I do it? Thank you.
Aucun commentaire:
Enregistrer un commentaire