-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
refactor: make isCancellable sync [SBK-370] #78
Conversation
SBK-370 "Refacto/ make isCancellable sync" (ApeWorX/ApePay #78)
isCancellable used to be async; we displayed 'fetching remaining time...' while waiting for the promise to return, which would take ~5-10 secs. I added the startTime in the Stream constructor to make it sync. Now there is little to no loading time in the cancel stream component, which is a great UX win. It allows to display the remaining time almost instantly when you load the stream. ApeWorX/ApePay #78 by alexisnsns on GitHub via LinearSync |
Also changed the wording to add 'simulations' and edited the css of the cancel button to make it so that on the demo app the user knows when a button is disabled |
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.
Need some updates for language here
isCancellable used to be async, with the cancel component displaying a loading message while waiting for the promise to resolve, which would take ~5-10 secs.
I added the startTime in the Stream constructor to make it sync.
Now there is little to no loading time in the cancel stream component, which is a great UX win.
It allows to display the remaining time almost instantly when you load the stream.