Skip to content

fromPromise allow options like { deep: true } #338

@eduardofcgo

Description

@eduardofcgo

Hello,

Currently, the fromPromise calls extendObservable with the { deep: false } option by default.

MobX's observable.map and observable.set use { deep: true }. Similarly, I believe most of the time we expect the value of the promise to be observable as well.

Maybe it makes sense to allow the user to pass their own options?

Manually converting the resolved value to an observable afterwards can be cumbersome.

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