-
Notifications
You must be signed in to change notification settings - Fork 712
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
Loading indicator #1485
Loading indicator #1485
Conversation
Alright! So it didn't end up being very exciting. 💍 . For now. Do you see it for very long on your machine? |
@@ -70,7 +71,7 @@ export const initialState = makeMap({ | |||
updatePausedAt: null, // Date | |||
version: '...', | |||
versionUpdate: null, | |||
websocketClosed: true, | |||
websocketClosed: false, |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
I like the entertainment, but only when I have to wait. On fast loads, it looks a bit distracting. How about firing off a timer that reevaluates the state after x seconds, and only then fires an action to display the indicator. |
Yep, good call On 12 May 2016 at 17:01, David [email protected] wrote:
|
Could you do this purely in css? Perhaps... do the settimeout onMount to On 12 May 2016 at 17:02, Simon Howe [email protected] wrote:
|
CSS is worth a try, maybe |
Is this meant to fix #1176? What's left to do here? |
Yes, this should help w/ #1176 Left to do:
|
63aa05c
to
20f70e7
Compare
Which can take a while sometimes.
- Sometimes can take a second to get the initial nodes - Not doing the transition between topos atm as its a bit distracting popping up and down.
It was showing infinite loading...
Are these getting better or worse...
Ready for re-review!
|
this.showTimeout = setTimeout(() => this.setState({ show: true }), this.props.delay); | ||
} | ||
|
||
cancelShow() { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Looks great. There is still the theoretical state when the UI loads w/ no backend present, then you get the load indicator (you should get an error instead). It will become less theoretical when the UI code is served by a webserver as opposed to the scope app itself. |
"help with" or "fix"? |
This will show a loading screen until the first delta is received which I believe is what is happening in #1176. This PR will fix that. Updated the description. |
Fixes #1176