added progress percentage for events fetching #6
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "refs/pull/6/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Explanation
If the last cached event is many blocks behind (over 100k) the use should know the current fetching status/progress.
To solve this, a progress indicator has been added to the loader. It shows the progress percentage based on the number of blocks needed to reach the current block. Without this indicator, the user could think that the website is stuck while instead he only has to wait.
Screenshots/Screencaps
@ -6,1 +2,3 @@
type: null
return {
message: '',
progress: '',
Let's keep state variable's types consistent, uninitialised loading state could be better detected using a default value of
-1
.So the PR should not address updating the cache, which seems to be have mistakenly done. I advise removing these associated files as they are not relative to the feature request. Also, see comment about maintaining types on state variables.
I see no conflicts otherwise.
Pull request closed