summaryrefslogtreecommitdiffstats
path: root/frontend/components/CreateItem.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/CreateItem.js
parent632af35d8a0871ca8c1041d0e14d63e2b457d168 (diff)
clean up
Diffstat (limited to 'frontend/components/CreateItem.js')
-rw-r--r--frontend/components/CreateItem.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/frontend/components/CreateItem.js b/frontend/components/CreateItem.js
index b40932c..0e26330 100644
--- a/frontend/components/CreateItem.js
+++ b/frontend/components/CreateItem.js
@@ -41,15 +41,9 @@ class CreateItem extends Component {
});
};
- // TODO: Problem here - if I refetch page 1, page 2 to infinity are still out of date. I need to refetch all the pages somehow? Or use @connection
render() {
return (
- <Mutation
- mutation={CREATE_ITEM_MUTATION}
- variables={this.state}
- // TODO - update all items
- // refetchQueries={[{ query: ALL_ITEMS_QUERY }]}
- >
+ <Mutation mutation={CREATE_ITEM_MUTATION} variables={this.state}>
{(createItem, { loading, error }) => (
<Form
data-test