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:
schroda
2023-05-18 13:48:01 +02:00
committed by GitHub
parent a457d80c44
commit aa801a57ee
3 changed files with 150 additions and 132 deletions

View File

@@ -1,7 +1,7 @@
{
"compilerOptions": {
"baseUrl": "./src",
"target": "es5",
"target": "es2015",
"lib": [
"dom",
"dom.iterable",