1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

Fix the MatrixUser cache in urql

This commit is contained in:
Quentin Gliech
2023-06-20 15:20:25 +02:00
parent f67cc0d6d0
commit a592f00cf9

View File

@ -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) => {