From e69d5a74aeba9bdd1ba96617d21f4cf18a35b814 Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Mon, 22 Jul 2019 12:04:39 +0300 Subject: [PATCH] Fixed feed caching issue --- src/components/posts/view/postsView.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/posts/view/postsView.js b/src/components/posts/view/postsView.js index 6954c06e3..e723ca1fa 100644 --- a/src/components/posts/view/postsView.js +++ b/src/components/posts/view/postsView.js @@ -178,7 +178,10 @@ class PostsView extends Component { } } - setFeedPosts(_posts); + if (posts.length < 5) { + setFeedPosts(_posts); + } + if (refreshing && newPosts.length > 0) { this.setState({ posts: _posts,