Closed alexisnsns closed 7 months ago
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](https://github.com/ApeWorX/ApePay/pull/78) by [alexisnsns](https://github.com/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
Also finally added a favicon: it's one less error to deal with, which makes the console cleaner and debugging easier.
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.