-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Improve our batch fetching cases #1681
Comments
I mentioned something similar a few days ago on the ASDK Slack, so I would be interested in any comment from the team. :) |
Hi guys, sorry for uping this issue once again, but I'd rather do this than create a new one. ;-) My use case is slightly different compared to nickvelloff, but it fits under "batch fetching cases". Please tell me if you'd like me to create a separate issue. Basically I have an I do realise that this would imply some changes to the current batch fetching mechanism, so my request is more of a "would that be doable / reasonable changes, or should I look for an alternative way of achieving this?". As always, thanks for the awesome framework :-) |
@flovouin This is a completely valid use case, and we should support it. Until seeing your note, I simply didn't realize this wasn't working correctly. Thank you for pinging the issue (it is clear you are constructive and respectful, please don't hesitate to report or ping issues if we are slow to respond!) The team is quite busy right now preparing for our Tuesday event (WWDC-week gathering for ASDK users to discuss the future of the framework and profile apps). We do have two new full time framework developers starting at Pinterest this week. It will probably take a few weeks for us to get to this issue, but, it should not be extremely complex if you are open to looking at the implementation and finding the right override points to trigger a "re-check" of the batch parameters. There should already be methods that make this a lot easier, things like "batch fetch if necessary" that are not too expensive to call if a batch doesn't need to be triggered. The task is probably as simple as calling the appropriate method more frequently, specifically in the cases of a programmatic scroll. |
Thank you for your reply, appleguy! |
@nickvelloff: Was this issue resolved in PR #1697? |
@hannahmbanana yes I didn't remember to close it. Thanks for the reminder! |
There is a use cases that might make sense to support a batch fetching update/enhancement:
If all loaded items are within visible bounds, fetching never triggers because this is triggered by a scroll event. If I have 10 of 100 items loaded, then pinch to zoom a collection view where all 10 fit nicely the trigger to fetch additional items will never get called.
This would commonly occur on pinch/zoom out with a collection view.
cc /@maicki
The text was updated successfully, but these errors were encountered: