You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the issue the elements can occur multiple times in the PaginationView. This is the case if new elements are added to the top of my list in the backend. More detailed steps to explain my problem:
If I open my PaginationeView for the first time, I see the first 15 items like expected (15 is always my limit for API requests). The request is send to my backend with offset=0 and limit = 15.
Waiting some time. Meanwhile, a new item is added in my backend at the top of the list.
Now scrolling down will trigger a second API request with offset=15 and limit=15. PaginationView automatically append both results to a list of 30 items. But in the described scenario an item it duplicated (position 15, last of the first request and position 16, first of second request)
There might be multiple solutions for this specific problem. I'm not sure what is best practice here. From my point of view, I'd like to have a optional parameter expiration of type Duration which forces the PaginationView to reload the whole list even if it has already loaded many items and the user scrolls down.
What do you think about this?
The text was updated successfully, but these errors were encountered:
Hi there!
I have the issue the elements can occur multiple times in the
PaginationView
. This is the case if new elements are added to the top of my list in the backend. More detailed steps to explain my problem:PaginationeView
for the first time, I see the first 15 items like expected (15 is always my limit for API requests). The request is send to my backend withoffset=0
andlimit = 15
.offset=15
andlimit=15
.PaginationView
automatically append both results to a list of 30 items. But in the described scenario an item it duplicated (position 15, last of the first request and position 16, first of second request)There might be multiple solutions for this specific problem. I'm not sure what is best practice here. From my point of view, I'd like to have a optional parameter
expiration
of typeDuration
which forces thePaginationView
to reload the whole list even if it has already loaded many items and the user scrolls down.What do you think about this?
The text was updated successfully, but these errors were encountered: