-
Notifications
You must be signed in to change notification settings - Fork 47k
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
DevTools scroll-to error or warning feature broken #22143
Comments
I wonder if this is related to a Chrome experimental flag? I can repro in both Chrome stable and canary. |
I can reproduce on Version 92.0.4515.159 (Official Build) (64-bit) (with and without our good friend "Throttle non-visible cross-origin iframes" enabled). Though it does scroll. It just is a bit offset. It also seems to work on upward movement if the current node is already in the frame. Notice how the scrollbar actually moves: devtools-scroll-to-warning.mp4 |
When we call If I just naively invalidate the cache on every operation, the issue is no longer reproducible: diff --git a/packages/react-devtools-shared/src/devtools/store.js b/packages/react-devtools-shared/src/devtools/store.js
index 16bc56ae64..af2ed945c4 100644
--- a/packages/react-devtools-shared/src/devtools/store.js
+++ b/packages/react-devtools-shared/src/devtools/store.js
@@ -1124,7 +1124,7 @@ export default class Store extends EventEmitter<{|
this._revision++;
- if (haveErrorsOrWarningsChanged) {
+ if (true) {
let errorCount = 0;
let warningCount = 0;
I may have an idea how to update the cache more "smartly". |
I only tested with the default instead of enabled, because when it is enabled it freezes everything, I am using Brave 1.28.105 Chromium: 92.0.4515.131, DevTools version 4.16.0-1d2528097. Same behavior on Chromium(without Brave) 92.0.4515.159. The code is just modified from the latest CRA
|
Not sure when this happened, but the feature got broken:
scroll-to-broken.mp4
Using the up/down arrows to navigate the list works fine, but jumping to the next/previous component with a warning or error doesn't quite work correctly. (The scroll offset is wrong so the component is often not visible.)
The text was updated successfully, but these errors were encountered: