Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for programmatic refresh #19

Open
daniel-smith-sonepar opened this issue Dec 27, 2023 · 3 comments
Open

Add support for programmatic refresh #19

daniel-smith-sonepar opened this issue Dec 27, 2023 · 3 comments

Comments

@daniel-smith-sonepar
Copy link

First, I just started using this control to replace CollectionView and it is awesome - really appreciate the work you have done here!

I have a couple of use cases where I want to perform a refresh of the list without user action but I would like to have the UI update to reflect the refresh is happening. I have a branch where I have implemented this feature and added it to the test app and confirmed it works as expected in iOS and Android. Would you be interested in a PR to add this feature?

@Redth
Copy link
Owner

Redth commented Jan 10, 2024

I'm curious what this would be doing? How does this differ from the Adapter.InvalidateData() call?

@daniel-smith-sonepar
Copy link
Author

The functionality is about updating the Refresh view to show the activity indicator animation in the UI, when Adapter.InvaldiateData() is called programmatically. Obviously if the user performs a pull gesture, that fires Adapter.InvalidateData() and we call the completion action which stop the activity indicator animation. However, if I programmatically call Adapter.InvalidateData(), it does not trigger the refresh views animation indicator to show. Hope that makese sense...let me know.

@Redth
Copy link
Owner

Redth commented Jan 11, 2024

Ahhh yes I understand what you’re after now.

Definitely makes sense to implement. If you’re up for the challenge I’d welcome the pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants