Skip to content

cycle case when using computed + getRoot #556

@marbemac

Description

@marbemac

Basically it seems that computeds that use getRoot and attempt to access observables that no longer exist can run into a cycle error? TBH I'm not sure, but I've got a reproduction. Note that this error is only visible if the mobx disableErrorBoundaries option is set to true.

Image

Reproduction: https://github.com/marbemac/mobx-keystone-circular-error (instructions to run in the readme).

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