Open pobch opened 2 years ago
Need this feature for an image
Separate the following tasks into multiple PRs.
id
removed
splice
unshift
mode: "moveElementsToFirstIndex"
commitNewSnapshot()
useHistory()
push
"moveElementsToLastIndex"
Need this feature for an image
TODOs
Separate the following tasks into multiple PRs.
id
instead of using the index numberremoved
element anymore. Instead, actually remove it from the array.splice
to remove the element from an array, put the stored element to the first index byunshift
.mode: "moveElementsToFirstIndex"
forcommitNewSnapshot()
insideuseHistory()
splice
to remove the element from an array, thenpush
the stored element into the array."moveElementsToLastIndex"