Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Command palette gets re-rendered even if hidden #13677

Closed
@krassowski

Description

@krassowski

Description

Command palette gets re-rendered even if hidden.

Reproduce

  1. Open command palette and two tabs
  2. Close the command palette
  3. Go to inspector right click on command palette element, select "break on" > "subtree modifications"
  4. Switch tabs
  5. See that command palette fragments get re-rendered via lumino virtual DOM

Screenshot from 2022-12-29 13-23-55

It is not clear to me why this update appears. Of note the migration torequestAnimationFrame in lumino seems to make the debugging/profiling a bit more confusing as I don't immediately see if this was a genuine animation frame request or just lumino messaging.

Expected behavior

Updating command palette on tab switch is expected because different commands will become available in different contexts (e.g. text editor/notebook), but re-rendering it while it is hidden is not expected.

In a bigger picture we could ask: should command palette get detached rather than hidden. I think hiding is ok because there is ever only one command palette, but requires a better hygiene on when a re-render is triggered.

Context

  • JupyterLab version: 4.0.0a31

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp