-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add loading spinner on login #172
Conversation
""" | ||
input_style_unchanged = {"width": "250px"} | ||
empty_style_unchanged = {"": ""} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be cleaner to user {}
instead, but then mypy
complains because it wants to know the type of empty_style_unchanged
and it seems python does not infer types for empty dictionaries => using {"": ""}
seems simpler than bringing in a whole typing library to handle that error only (from typing import Dict, Optional ... empty_style: Dict[str, Optional[str]] = {}
).
empty_style_unchanged, | ||
empty_style_unchanged, | ||
hide_element_style, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MateoLostanlen @fe51 @RonanMorgan Another example where Dash
does not scale well. In a "sane" 😉 web framework:
- You shouldn't have to repeatedly include placeholders for things you don't want to update: Just pass a map/dict of what you do want to change and the framework should know the rest should be left untouched.
- You shouldn't have to go back and forth between the parameters in the head of your function and the return to match the order of the declared outputs and with the order of the returns => just return a map each time.
Maybe there are workarounds to fix that in Dash but this kind of update behavior should really come out of the box.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this !
Screen.Recording.2024-11-08.at.10.08.58.AM.mov