Skip to content

Nested observables should be serialized with toJS() #3

@SpaceK33z

Description

@SpaceK33z
class Product extends Model {
    @observable foo = [];
}

const product = new Product();
product.toJS(); // I would expect product.foo to be a normal JS array now, but it's an ObservableArray

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions