Feature/updates screen use infinite swr hook (#303)
* Use "RequestManager" for loading updates * [Cleanup] Fix typing * Memoize grouped updates * [TSConfig] Increase target version Makes it possible to iterate over a "IterableIterator" (e.g. [...<Map>.entries()]) * Use "GroupedVirtuoso" for "Updates" screen * Optionally use "padding" instead of margin for the loading placeholder In case the loading placeholder gets used in a "react-virtuoso" list, the margin might cause issues with the calculated height. * Use "padding" instead of "margin" "Margin" breaks "react-virtuosos" height calculation * Add background color to group header With virtuoso the group headers are sticky, thus, a background color is needed * Simplify "groupByDate" object structure It's not necessary to save the items inside the group object
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": "./src",
|
||||
"target": "es5",
|
||||
"target": "es2015",
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
|
||||
Reference in New Issue
Block a user