Open Bug 1575869 Opened 5 years ago Updated 2 years ago

Adding an expression in the watch panel makes the Expressions panel render 5 times

Categories

(DevTools :: Debugger, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: nchevobbe, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [debugger-reserver])

Steps to reproduce

  1. Open the debugger
  2. Open the browser toolbox debugger, and put a logpoint in the Expression component render function (like "render", this.props)
  3. In the regular debugger, add a watch expression (e.g. 1)

Expected results

The logpoint produces one or two render messages

Actual results

The logpoint is hit 5 times after I hit the Enter key.


Looks like we're dispatching a bunch of actions that each trigger renders? And shouldComponentUpdate may not be as efficient as we think.

Maybe also related to bug 1569829 and other flickering issues; that Debugger thrashes UI with unnecessary state changes and renderings?

Blocks: dbg-perf
Blocks: dbg-71
Whiteboard: [debugger-mvp]

I was not able to reproduce 5 renders

I saw two for new Expressions and 3 for updates

https://www.loom.com/share/a34ce785ddce4279879631385b2b5bd6

Whiteboard: [debugger-mvp] → [debugger-reserver]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.