-
Notifications
You must be signed in to change notification settings - Fork 24
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
Don't render ActionBarView during loading #4612
Conversation
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.
@daniel-wer I recommend to enable the Hide whitespace changes
setting in github.
@@ -287,8 +287,8 @@ class DatasetInfoTabView extends React.PureComponent<Props> { | |||
|
|||
return ( | |||
<div className="flex-overflow"> | |||
<p>{annotationTypeLabel}</p> |
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.
This produced a warning because p
tags shouldn't contain div
s.
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.
Awesome, very elegant 👍
This kills two birds with one stone: The action bar view doesn't show incorrect data during loading anymore (e.g., invalid position). Additionally, the sharing modals are not instantiated before loading which avoids trying to load sharing tokens for the dummy dataset which the store holds initially (which always fails).
URL of deployed dev instance (used for testing):
Steps to test:
Issues: