anhances post according to new user when switch

This commit is contained in:
u-e 2018-12-18 13:09:33 +03:00
parent 38d62fdc9f
commit 5b6a889d68

View File

@ -42,7 +42,19 @@ class PostsView extends Component {
currentAccountUsername !== nextProps.currentAccountUsername
&& nextProps.currentAccountUsername
) {
this._loadPosts();
// Set all initial data (New user new rules)
this.setState({
posts: [],
startAuthor: '',
startPermlink: '',
refreshing: false,
isLoading: false,
isPostsLoading: false,
isHideImage: false,
selectedFilterIndex: 0,
}, () => {
this._loadPosts();
});
}
}