-
Notifications
You must be signed in to change notification settings - Fork 47.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReactDefaultPerf.printWasted() doesn't work #5548
Comments
@Daniel15 Are you still experiencing this issue internally? If so, can you create an internal task with details and repro steps? Assign to the oncall, cc the React team. Our internal configuration is a bit different, and we don't want to discuss internal code/details/configurations on github. I'm going to close this out, and we can help you debug using internal tools if you're still running into problems. |
Small note for anyone experiencing a similar error message who arrived here by Googling: I got bit by this because I updated |
I'm getting this issue after upgrading to react 15.0.1. All my React packages (including perf) is 15.0.1. printExclusive() etc. works, but printWasted gives the exception shown above. |
@sverrejoh Are you running |
Yes. I changed over to my 0.14.7 branch, and there everything works like it should, and I double checked that both ReactPerf and React was on 15.0.1. I can dig around a bit more if this isn't anything known. |
Let’s reopen until we hear more. |
I had it working for a few minutes and then it started failing without me doing anything strange. |
Thanks for the info, do you also have the same stack trace and error message as the first post? |
Yes. I was exposing the I'm using the full 15.0.1 ecosystem, on Babel 6, Webpack and Webpack dev server, testing on Chrome. |
Any chance you have a public project where you can more or less consistently reproduce this? |
Technically this means there was a write for which there was no hierarchy record. This code is super fragile so it’s hard to pin it down without having a specific component hierarchy that happens to cause this. |
If someone wants to spend some effort tracking it down, I would recommend:
Then please share the relevant |
@gaearon Thanks Dan, I'll try setting up that to see if I can help. Unfortunately I cannot share my project right now because of client terms. |
@Danita Yeah, I thought this might be the case. Thanks for taking the time to investigate. |
@gaearon OK I added the lines and I managed to also reproduce the error. Here you can find the console log. FYI, my app is a SPA, I captured this on a route where I have a long list of items that can be filtered by certain criteria and doing |
Thank you, this is very helpful! I’ll dig into it and see if I can repro this given the new info. |
Calling
ReactDefaultPerf.printWasted()
results in:(this is on a page internally at Facebook so I assume it's a fairly recent React version)
The text was updated successfully, but these errors were encountered: