We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 051f9d7 commit e7dd282Copy full SHA for e7dd282
stepped-solutions/21/frontend/components/DeleteItem.js
@@ -17,7 +17,7 @@ class DeleteItem extends Component {
17
// 1. Read the cache for the items we want
18
const data = cache.readQuery({ query: ALL_ITEMS_QUERY });
19
console.log(data, payload);
20
- // 2. Filter the deleted itemout of the page
+ // 2. Filter the deleted item out of the page
21
data.items = data.items.filter(item => item.id !== payload.data.deleteItem.id);
22
// 3. Put the items back!
23
cache.writeQuery({ query: ALL_ITEMS_QUERY, data });
0 commit comments