Skip to content

Bug: React DevTools 'Why did this component render?' incorrectly reports 'The parent component rendered' #19732

Closed as not planned
@bgirard

Description

@bgirard

React Devtools shows why a component has re-render but sometimes it says 'The parent component rendered' when it just doesn't know. Ideally we would split out these two scenario, otherwise the string should highlight the uncertainty. Me and another Jimmy both went debugging the wrong thing and I lost time assuming the message was correct.

React version: React DevTools 4.8.2

Steps To Reproduce

I believe this bug happens when there's a context changing but I'm not positive.

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