Showing
1 changed file
with
5 additions
and
0 deletions
... | @@ -15,6 +15,11 @@ export const resolvers = { | ... | @@ -15,6 +15,11 @@ export const resolvers = { |
15 | }, | 15 | }, |
16 | logUserOut: (_, __, { cache }) => { | 16 | logUserOut: (_, __, { cache }) => { |
17 | localStorage.removeItem("token"); | 17 | localStorage.removeItem("token"); |
18 | + cache.writeData({ | ||
19 | + data: { | ||
20 | + isLoggedIn: false, | ||
21 | + }, | ||
22 | + }); | ||
18 | window.location.reload(); | 23 | window.location.reload(); |
19 | return null; | 24 | return null; |
20 | }, | 25 | }, | ... | ... |
-
Please register or login to post a comment