diff options
Diffstat (limited to 'frontend/components/Items.js')
| -rw-r--r-- | frontend/components/Items.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/frontend/components/Items.js b/frontend/components/Items.js index 9489f5d..2eacd22 100644 --- a/frontend/components/Items.js +++ b/frontend/components/Items.js @@ -24,14 +24,7 @@ class ItemList extends React.Component { static propTypes = { page: PropTypes.number.isRequired, }; - static getDerivedStateFromProps(nextProps, state) { - return { refetch: state.page !== nextProps.page }; - } - state = { - refetch: false, - }; render() { - const fetchPolicy = this.state.refetch ? 'network-only' : 'cache-first'; return ( <Center key={this.props.page}> <Pagination page={this.props.page} /> @@ -41,7 +34,7 @@ class ItemList extends React.Component { skip: this.props.page * perPage - perPage, first: perPage, }} - fetchPolicy={fetchPolicy} + // fetchPolicy="network-only" > {({ data, error, loading }) => { if (loading) { |
