Redux persist #225

Merged
6ea86b96 merged 8 commits from redux-persist into master 2017-06-15 16:13:31 +02:00
4 changed files with 5 additions and 10 deletions
Showing only changes of commit 04c4988a9a - Show all commits

View file

@ -102,12 +102,7 @@ export function doFetchFileInfosAndPublishedClaims() {
isClaimListMinePending = selectClaimListMineIsPending(state),
isFileInfoListPending = selectFileListIsPending(state);
if (isClaimListMinePending === undefined) {
dispatch(doFetchClaimListMine());
}
if (isFileInfoListPending === undefined) {
dispatch(doFileList());
}
dispatch(doFetchClaimListMine());
dispatch(doFileList());
};
}

View file

@ -82,7 +82,7 @@ class FileList extends React.PureComponent {
});
return (
<section className="file-list__header">
{fetching && <span className="busy-indicator" />}
{fetching && <BusyMessage />}
<span className="sort-section">
{__("Sort by")} {" "}
<FormField type="select" onChange={this.handleSortChanged.bind(this)}>

View file

@ -12,7 +12,7 @@ import SubHeader from "component/subHeader";
class FileListDownloaded extends React.PureComponent {
componentWillMount() {
this.props.fetchFileInfosDownloaded();
if (!this.props.isPending) this.props.fetchFileInfosDownloaded();
}
render() {

View file

@ -12,7 +12,7 @@ import SubHeader from "component/subHeader";
class FileListPublished extends React.PureComponent {
componentWillMount() {
this.props.fetchFileListPublished();
if (!this.props.isPending) this.props.fetchFileListPublished();
}
componentDidUpdate() {