Fixed feed caching issue

This commit is contained in:
Mustafa Buyukcelebi 2019-07-22 12:04:39 +03:00
parent f3c0c206bb
commit e69d5a74ae

View File

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