Skip to content

Object spreading does not pick up new properties #29

@aleclarson

Description

@aleclarson
const data = o({ a: 1 })
auto(() => console.log('changed:', { ...data })

// New property is not observed.
data.b = 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    limitationDesign limitations (or JavaScript itself) are to blame

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions