Closed wenyongda closed 11 months ago
Due to the fact that your object structure does not support JSON serialization, you can pass a custom cloning function to implement your own cloning functionality.
import { cloneDeep } from 'lodash-es'
useDraggable(el, list, {
clone: cloneDeep
})
There is no problem with using it in the development environment. But I will report Error when I pack and deploy to the production environment. Converting circular structure to JSON --> starting at object with constructor 'Object' But the function is good.