Skip to content

DevTools: Show Source should point to render, not constructor #16749

Closed
@theKashey

Description

@theKashey

Do you want to request a feature or report a bug?

Bug. Regression to be more concrete - facebook/react-devtools#1191

What is the current behavior?

Show Source points to a Function Component body, and Class Component constructor.

What is the expected behavior?

In both cases, you should see "render" methods, class constructor is never something you might want to jump straight into. It was working in this expected way in a previous version of Dev Tools.

Why this is an issue?

Well, until React-Hot-Loader is not 100% deprecated, "Show Source" would not work at all, as long as it (and not only it - mobx would do the same) is wrapping class constructor, however keeping render untouched.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions