Skip to content

Data clearing issue when using two sibling presenters #518

@djmccormick

Description

@djmccormick

Is this a feature, bug, or something else?
Bug

What is the current behavior?
We're using presenters throughout our application. We nest them without problems. Sometimes when we have one presenter with two presenters inside it, though, we notice some strange behavior. If a sibling presenter loads data it'll sometimes completely clear out the state of the other presenter. This usually happens on initial load, and feels like a race case.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/w2m0mang/).
I've tried to create a minimal demo of this behavior but haven't been able to reproduce. We've had this pop up in two different large apps we've built over time, and we're at wits end trying to figure it out. The microcosm-devtools don't seem to work anymore, so we haven't had luck debugging with that. We're using react-router, in case that's relevant. Glad to give more information or run tests.

What is the expected behavior?
I'd expect the forks to live independently and not be effected by one another.

Which versions of Microcosm is affected by this issue?
We're using 12.13.3

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