-
Notifications
You must be signed in to change notification settings - Fork 231
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
RecyclerView Not Updating Edits and Deletes till Swiperefresh #26
Comments
remove this bloc from BlogViewModel : |
You mean The problem with this it is forced not by trigger! The problem having this is it generate extra Network traffic - Even if Change was NOT made! I'd think Mitch will have a different solution, but it works! |
@Zlagi You put me on the correct Track However Add in BlogFragment onViewCreated
Remove from ViewBlogFragment the line that re-set the flag SHOULD_REFRESH so that it is still there for the BlogFragment
The BlogFragment will then Re-Set the flag! if needed and would cause NO extra traffic plus the isLoading is working correct! Works as Intended! |
It's not as simple as you suggested. If you refresh in BlogFragment the list position is lost. We would need a use-case that only updates that specific blogpost in the list. Feel free to write it :) |
Ok I guess you will sort that, I have mostly tested on the Top blog 👍 |
I had a thought |
Can you please test Open-Api where you delete a blog, It looks like SHOULD_REFRESH is not refreshing the blogList!, I think you have missed BlogEvent.Refresh, I may be wrong
UpdateBlog Reflect Nicely on ViewBlog But does not filter through to ListBlog
The text was updated successfully, but these errors were encountered: