Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

$r points to wrong component, doesn't update on select #929

@ovidiuch

Description

@ovidiuch

Minimal reproducing project: https://github.com/react-cosmos/react-cosmos. Not minimal in number of deps, sorry! It will take a minute or two for yarn to bootstrap deps. But minimal in number of steps: Run yarn start.

Before diving in, here is what I'm experiencing

devtools-bug

$r always points to the same component (not a root nor a leaf), regardless of what I select.

Possible area of conflict: The Cosmos Playground has two frames, the top one with the menu and the iframe with the loaded components. They come from different bundles with different copies of React in each, and the inner frame attaches __REACT_DEVTOOLS_GLOBAL_HOOK__ to the parent window, which is why they both show up in the React tab. As far as the React tab is concerned, components from both bundles show up and their correct info is shown when selected. Only problem is $r doesn't point to the selected component in the Console.

Let me know if there's anything else I can provide or if you have suggestions for what to debug on my end. Thanks!

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