SMU-SIS / reacolo

MIT License
0 stars 0 forks source link

Ability to filter in function of the connection state #11

Open QuentinRoy opened 7 years ago

QuentinRoy commented 7 years ago

Virtually every app first render function includes something of the sort with reacolo:

if (!this.props.isConnected) {
  return <LoadingView>Waiting for Ecology</LoadingView>;
}

Maybe isConnected should be included as part of the context so that it can be easily match against.

QuentinRoy commented 7 years ago

If clientRole is part of the context, then isConnected should be as well.