-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix DropDown on page load #98
Comments
In old versions, before adding the filters, the dropdown was generated directly in the layout. Perhaps we could generate the DropDown again in the layout, and prevent the first call to the callback. That way, the page will take a bit more to load, but the dropdown will be already there (better UX). |
The main purpose of this issue is to make the initial call to org_filters not necessary, and do everything inside To do this, we will have to:
|
I'm also having problems to use
Because of our multipage layout, which loads the components after loading the application (using the change_subpage callback), we can't prevent the initial call on Perhaps using |
I've added the Dropdown to the __generate_header function. I don't think there's much improvement. After giving up on trying to improve it, I think we have the following options:
|
About the first option, there are some callbacks that read information from the dropdown. This is because they generate an |
If we want to create a custom component, we'll need to use:
Some community made components are: The main problem with our current dropdown is rendering thousands of items. We need a system in which the dropdown only has a couple of hundred items at most, and if the user scrolls to the end, we could either load more items or tell the user that he needs to write text to search. We should take the Table Component (which has server-side pagination) as a reference. |
Waiting for plotly/dash#2251 to be fixed |
This would be easier to fix if #88 was completed |
This issue could be related to #96, but improving the dropdown loading time is more important than adding caching to the rest of the application, so it will be done first.
The text was updated successfully, but these errors were encountered: