Skip to content

Lazy-loading folder structure / creating subfolders on demand #31

@bwalocha

Description

@bwalocha

Awesome project – thank you for your work!

I have been using this project for a while and now I am trying to display a folder structure received from my ESP32 via an API.

Current behavior

At the moment, everything works when I receive the entire folder tree from the API and create the full structure in a single load step. However, this approach is not efficient for larger structures.

Problem

What I would like to achieve instead is lazy loading:

  • when the user opens the root folder → load only its direct subfolders and files
  • when the user opens a subfolder → load its content on demand

I couldn’t find a way to dynamically create subfolders when a folder is opened.

Question

Is there a way to:

  • listen for a folder-open event, and
  • create / load subfolders of that folder dynamically?

If not, is there any recommended workaround for this use case?

Any suggestions would be really welcome.
Greetings to the author!

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