summaryrefslogtreecommitdiffstats
path: root/frontend/components/CreateItem.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/components/CreateItem.js')
-rw-r--r--frontend/components/CreateItem.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/frontend/components/CreateItem.js b/frontend/components/CreateItem.js
index 49f2f8f..8072905 100644
--- a/frontend/components/CreateItem.js
+++ b/frontend/components/CreateItem.js
@@ -42,21 +42,13 @@ 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? without @connection
+ // 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}
- refetchQueries={[
- {
- query: ALL_ITEMS_QUERY,
- variables: {
- skip: 0,
- first: 2,
- },
- },
- ]}
+ refetchQueries={[{ query: ALL_ITEMS_QUERY }]}
>
{(createItem, { loading, error }) => (
<Form