Skip to content

[tree view] Controlling expansion fails to lazy-load items #21088

@caillou

Description

@caillou

Steps to reproduce

Steps:

  1. Open this link to live example: https://stackblitz.com/edit/eprl156a?file=src%2FDemo.tsx
  2. Click Open All Controlled.
  3. Data is not fetched

Current behavior

No response

Expected behavior

No response

Context

I discovered this bug while trying to find a solution to the following issue:

#21053

Your environment

npx @mui/envinfo
   npmPackages:
    @base-ui/utils:  0.2.4 
    @emotion/react: latest => 11.14.0 
    @emotion/styled: latest => 11.14.1 
    @mui/core-downloads-tracker:  7.3.7 
    @mui/icons-material: latest => 7.3.7 
    @mui/material: latest => 7.3.7 
    @mui/private-theming:  7.3.7 
    @mui/styled-engine:  7.3.7 
    @mui/system:  7.3.7 
    @mui/types:  7.4.10 
    @mui/utils:  7.3.7 
    @mui/x-data-grid:  8.26.0 
    @mui/x-data-grid-generator: latest => 8.26.0 
    @mui/x-data-grid-premium:  8.26.0 
    @mui/x-data-grid-pro:  8.26.0 
    @mui/x-internal-exceljs-fork:  4.4.3 
    @mui/x-internals:  8.26.0 
    @mui/x-license:  8.26.0 
    @mui/x-telemetry:  8.20.0 
    @mui/x-tree-view: latest => 8.26.0 
    @mui/x-tree-view-pro: latest => 8.26.0 
    @mui/x-virtualizer:  0.3.3 
    @types/react: latest => 19.2.9 
    react: latest => 19.2.3 
    react-dom: latest => 19.2.3 
    typescript: latest => 5.9.3 

Search keywords: tree lazy-load

Order ID: 110649

Metadata

Metadata

Assignees

No one assigned

    Labels

    not plannedThe problem seems valid, but we don't intend to fix it (won't fix).scope: tree viewChanges related to the tree view. This includes TreeView, TreeItem.support: pro standardSupport request from a Pro standard plan user. https://mui.com/legal/technical-support-sla.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions