From a592f00cf9b57a107f0c62cbdb6913993ed48685 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Tue, 20 Jun 2023 15:20:25 +0200 Subject: [PATCH] Fix the MatrixUser cache in urql --- frontend/src/graphql.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/graphql.ts b/frontend/src/graphql.ts index 550afdae..01f45e48 100644 --- a/frontend/src/graphql.ts +++ b/frontend/src/graphql.ts @@ -27,6 +27,10 @@ import schema from "./gql/schema"; const cache = cacheExchange({ schema, + keys: { + // This is embedded in the `User` entity and has no ID + MatrixUser: () => null, + }, updates: { Mutation: { addEmail: (result, args: MutationAddEmailArgs, cache, _info) => {