From 3b09ea4e2ab881e534ea17c828014e552ba7972c Mon Sep 17 00:00:00 2001 From: Kurt Hutten Date: Thu, 31 Dec 2020 18:26:42 +1100 Subject: [PATCH] Refresh cache on mutation by fetching new data in mutation resolves #195 --- web/src/components/PartCell/PartCell.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/src/components/PartCell/PartCell.js b/web/src/components/PartCell/PartCell.js index 0bef362..05d736d 100644 --- a/web/src/components/PartCell/PartCell.js +++ b/web/src/components/PartCell/PartCell.js @@ -49,6 +49,13 @@ const UPDATE_PART_MUTATION = gql` updatePart: updatePart(id: $id, input: $input) { id title + description + code + mainImage + userId + Reaction { + emote + } user { id userName