This commit is contained in:
AllenFang
2018-10-14 15:07:30 +08:00
parent ae4d38cae6
commit 19be67c914
+10
View File
@@ -54,6 +54,16 @@ const withContext = Base =>
}
}
componentWillReceiveProps(nextProps) {
if (!nextProps.pagination && this.props.pagination) {
this.PaginationContext = null;
}
if (nextProps.pagination && !this.props.pagination) {
this.PaginationContext = nextProps.pagination.createContext(
this.isRemotePagination, this.handleRemotePageChange);
}
}
renderBase() {
return (
rootProps,