usePaginatedRequest hook for simpler handling of pagination on FE (#6060)

* feat: usePaginatedRequest hook

* fix: spread params

* fix: handle limit zero

* fix: handle case when stars.fetchPage returns empty array

* fix: use stars.orderedData for reactivity
This commit is contained in:
Apoorv Mishra
2023-10-29 20:01:47 +05:30
committed by GitHub
parent 4d3655bc6c
commit 3fd429baa9
3 changed files with 111 additions and 31 deletions

View File

@@ -243,6 +243,7 @@
"Empty": "Empty",
"Go back": "Go back",
"Go forward": "Go forward",
"Could not load starred documents": "Could not load starred documents",
"Starred": "Starred",
"Show more": "Show more",
"Up to date": "Up to date",