Fixed feed caching issue

This commit is contained in:
Mustafa Buyukcelebi 2019-07-22 12:04:39 +03:00
parent e296ac891b
commit 8543fe5d95

View File

@ -178,7 +178,10 @@ class PostsView extends Component {
} }
} }
setFeedPosts(_posts); if (posts.length < 5) {
setFeedPosts(_posts);
}
if (refreshing && newPosts.length > 0) { if (refreshing && newPosts.length > 0) {
this.setState({ this.setState({
posts: _posts, posts: _posts,