react: DevTools: showing wrong state
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Visual bug: showing wrong state; so user cant use devtools for debugging
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn’t have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:
https://codesandbox.io/s/wizardly-lewin-dlw5k https://dlw5k.csb.app/
-
Open browser dev tools
-
select “Components”, click on “App”, expand
selectedPairsofState -
select 3+ currencies from the list on the page. State is proper for now
-
uncheck any not last box. Devtools will remove the last from the list. Uncheck something once more, and again just last item will disappear.
-
Click on ‘bug’ icon (“Log this component data to the console”) Expand data, ‘State’ is ok. So just a visual bug?
What is the expected behavior?
Devtools should update State properly.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
React Developer Tools: 4.1.0 (9/19/2019) Browser: Google Chrome 76.0.3809.132 (64bit) OS: Windows 7 Professional SP1 64bit
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 7
- Comments: 16 (8 by maintainers)
Found the issue. Currently about to open a PR with the hotfix. @bvaughn expect something in 10-15 minutes.
Have same problem
Hey everyone 👋 We know about this issue, and we know the cause (see my comment on #16844). Please just give us a bit of time to fix it 😄
This fix has just been published to NPM and posted to Chrome/Firefox as v4.1.1
Good chance I’ll look into this myself sometime early next week.
@mark-quinn it is not the same issue… The other one is about DevTools being blank… let’s not mix two seperate issues…