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

Is it possible to show an error message #47

Open
lujop opened this issue Nov 15, 2016 · 3 comments
Open

Is it possible to show an error message #47

lujop opened this issue Nov 15, 2016 · 3 comments

Comments

@lujop
Copy link

lujop commented Nov 15, 2016

Is it possible to show an error message if loading more data fails?

@pronebird
Copy link
Owner

Hi, You have entire control over that. infinite scroll does not provide any capabilities for that and I believe this task is beyond the scope of this project.

@lujop
Copy link
Author

lujop commented Nov 16, 2016

I think that will be useful to reuse the logic that adds the spinner to be able to show a message like 'loading more data failed'.

In my case when the initial load fails and you haven't data I show the error in tableview's background. But when you have data and load more data fails I think that the nicest and less intrusive way is to put where the loading indicator was.

@pronebird
Copy link
Owner

I was thinking the same. It's possible to display that as part of custom indicator view. We would then have to postpone the point when we restore bottom content inset to keep bottom view visible. The question is then how to provide means to retry loading more data.

Maybe we could add behaviors support to manage that externally or provide certain boilerplate.

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

No branches or pull requests

2 participants