Skip to content

Observables don't seem to work correctly with function in object #2835

Closed
@RickLucassen

Description

Intended outcome:
We should be able to extend an observable object, keeping the predefined properties intact, including functions.

Actual outcome:
When extending/printing an observable object with a function in it it will disappear.

How to reproduce the issue:
MobX 5: https://codesandbox.io/s/competent-dijkstra-3z6jm
MobX 6: https://codesandbox.io/s/keen-bas-7t0is

As you can see the function is still present when using MobX 5.

Metadata

Assignees

No one assigned

    Labels

    🎁 mobxIssue or PR related to mobx package🐛 bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions