We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae4d38c commit 19be67cCopy full SHA for 19be67c
packages/react-bootstrap-table2/src/contexts/index.js
@@ -54,6 +54,16 @@ const withContext = Base =>
54
}
55
56
57
+ componentWillReceiveProps(nextProps) {
58
+ if (!nextProps.pagination && this.props.pagination) {
59
+ this.PaginationContext = null;
60
+ }
61
+ if (nextProps.pagination && !this.props.pagination) {
62
+ this.PaginationContext = nextProps.pagination.createContext(
63
+ this.isRemotePagination, this.handleRemotePageChange);
64
65
66
+
67
renderBase() {
68
return (
69
rootProps,
0 commit comments