summaryrefslogtreecommitdiffstats
path: root/frontend/components/Items.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-05-11 10:46:24 -0400
committerWes Bos <wesbos@gmail.com>2018-05-11 10:46:24 -0400
commit8ccb0d93cdc064776454c929e15aa03129be37a3 (patch)
tree109dd4fd595f15d25d2b3b27682c776123290ea2 /frontend/components/Items.js
parent632af35d8a0871ca8c1041d0e14d63e2b457d168 (diff)
clean up
Diffstat (limited to 'frontend/components/Items.js')
-rw-r--r--frontend/components/Items.js9
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) {