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
Display whether the group summary/room list is loading #1560
Conversation
This uses a `ready` flag assigned to each fetching API used by the GroupServer. I've avoided making this generic for now for want of not doing so early.
@@ -670,7 +677,7 @@ export default React.createClass({ | |||
<h3>{ _t('Rooms') }</h3> | |||
{ addRoomRow } | |||
</div> | |||
<RoomDetailList rooms={this._groupStore.getGroupRooms()} /> | |||
<RoomDetailList rooms={this.state.groupRooms} loading={this.state.groupRoomsLoading} /> |
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.
Is there a reason for passing this into RoomDetailList
and letting it deal with the loading state rather than just showing a spinner in lieu of it?
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.
Not really, TBH. Happy do to the simpler thing of replacing it entirely with a spinner.
@@ -96,6 +105,10 @@ export default class GroupStore extends EventEmitter { | |||
this.removeListener('update', fn); | |||
} | |||
|
|||
isStateReady(id) { |
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 is quite nice but I feel like we now need to doc what string values are acceptable to it. How about defining some constants on the GroupStore class and and using these instead?
…g/matrix-react-sdk into luke/groups-expose-ready-state
This uses a
ready
flag assigned to each fetching API used by the GroupServer. I've avoided making this generic for now for want of not doing so early.fixes element-hq/element-web#5457