I"m going to do a sortable drag, using reactdnd, http://react-dnd.github.io/re.
.
he is using the updated array of react"s setstate, but my array is stored in store. For each update, you need to create a new sorted array, and then assign a value to the original array in store. However, mobx does not seem to be able to re-render the changed dom, like react"s setstate, but this array is re-rendered, resulting in performance far less good than the example on the official website.
so I hope there is some way to solve it.
for all rendering effects caused by store assignment in mobx, please refer to the dynamic image in the link https://juejin.im/post/5a3432.