Skip to content
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

Refresh method for FileExplorer component #9350

Open
1 task done
DRomatzki opened this issue Sep 14, 2024 · 1 comment
Open
1 task done

Refresh method for FileExplorer component #9350

DRomatzki opened this issue Sep 14, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@DRomatzki
Copy link

DRomatzki commented Sep 14, 2024

  • I have searched to see if a similar issue already exists.
    Yes, Even tried a custom FileExplorer but could not get the "refresh" solved.

Describe the solution you'd like
A file explorer component shows the local file structure, but sometimes the underlying file structure changes due to file addition, renaming and deletion. So there must be a way to toggle a refresh.

Additional context
Currently I am overcoming the refresh by toggling the "glob" or "ignore_glob" parameters in the traditional way with success, but it would be nice to have a refresh parameter/method. Looking at the source code of the FIleExplorer is could be done by adding a refresh flag to the [Key] trigger list. The problem is I can not figure out the part thereafter and how the [key] are used to update the interface.

@abidlabs abidlabs added the enhancement New feature or request label Sep 14, 2024
@freddyaboulton
Copy link
Collaborator

This is related to #7788 imo. We can either refactor the component to refresh automatically or add a method to trigger the refresh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants