Bug: Devtools does not correctly identify context change for functional component #22737
Labels
Component: Developer Tools
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
React version: 17.0.2
Devtools version: 4.21.0.1 (FB build)
Steps To Reproduce
Link to code example:
https://codesandbox.io/s/react-playground-forked-lke58
The current behavior
The profiler says the component rendered because the parent component rendered. This is incorrect, as the parent component is a MemoComponent that did in fact not render.
The expected behavior
The component actually rendered because its context was changed. When digging into the devtools code, we are checking the memoizedValue value on the context, which doesn't seem to exist.
I couldn't find the actual value on the context property; or in the memoizedState.
The text was updated successfully, but these errors were encountered: