With this change, all data will be stored in your local IndexedDB after fetching it. Then, when present on app launch, it will be loaded from the cache, instead of the network. After the loading screen has finished, the app will then fetch updated data from the network.
Aside from the obvious speedups for users who visit more than once, there's also one considerable performance optimization baked into this PR for completely new users: it will only fetch the last 30 contributions from the network when loading the app for the first time, and then fetch the last 200 after rendering the page (and add them to the list when done).
With this change, all data will be stored in your local IndexedDB after fetching it. Then, when present on app launch, it will be loaded from the cache, instead of the network. After the loading screen has finished, the app will then fetch updated data from the network.
Aside from the obvious speedups for users who visit more than once, there's also one considerable performance optimization baked into this PR for completely new users: it will only fetch the last 30 contributions from the network when loading the app for the first time, and then fetch the last 200 after rendering the page (and add them to the list when done).
closes #182
fsmanuel
(Migrated from github.com)
reviewed 2020-05-27 15:35:23 +00:00
bumi
(Migrated from github.com)
approved these changes 2020-05-30 10:46:00 +00:00
was wondering if the rename from confirmedAtBlock to confirmedAt is so needed because now we call it differently in the kredits-contracts and kredits-web
was wondering if the rename from `confirmedAtBlock` to `confirmedAt` is so needed because now we call it differently in the kredits-contracts and kredits-web
galfert
(Migrated from github.com)
approved these changes 2020-05-30 14:20:32 +00:00
It's not a rename, because it's the same property that returned the number before as well. The confirmedAtBlock is the one from the contracts, which isn't formatted as a number.
It's not a rename, because it's the same property that returned the number before as well. The `confirmedAtBlock` is the one from the contracts, which isn't formatted as a number.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
With this change, all data will be stored in your local IndexedDB after fetching it. Then, when present on app launch, it will be loaded from the cache, instead of the network. After the loading screen has finished, the app will then fetch updated data from the network.
Aside from the obvious speedups for users who visit more than once, there's also one considerable performance optimization baked into this PR for completely new users: it will only fetch the last 30 contributions from the network when loading the app for the first time, and then fetch the last 200 after rendering the page (and add them to the list when done).
closes #182
I've tested the app. looks great for me here! 👍
@@ -0,0 +2,4 @@const processed = {}if (data.confirmedAtBlock && (typeof data.confirmedAtBlock.toNumber === 'function')) {processed.confirmedAt = data.confirmedAtBlock.toNumber();was wondering if the rename from
confirmedAtBlocktoconfirmedAtis so needed because now we call it differently in the kredits-contracts and kredits-webCode looks ok to me. Haven't tested it myself.
@@ -0,0 +2,4 @@const processed = {}if (data.confirmedAtBlock && (typeof data.confirmedAtBlock.toNumber === 'function')) {processed.confirmedAt = data.confirmedAtBlock.toNumber();It's not a rename, because it's the same property that returned the number before as well. The
confirmedAtBlockis the one from the contracts, which isn't formatted as a number.