Skip to content

useSortable data prop is spreaded and hence only copies owned properties. #1375

Open
@Rohitbels

Description

@Rohitbels

useSortable data prop is spread and used internally.

spread parameter leads to loss of properties from the prototype chain of an object.

Can we use Object.create?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors#creating_a_shallow_copy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions