From 2939a822087809d15400d3f709cea0ada44b7467 Mon Sep 17 00:00:00 2001 From: Ben Awad Date: Sun, 16 Aug 2020 14:43:26 -0500 Subject: [PATCH] cache-reset --- web/src/components/NavBar.tsx | 7 ++- web/src/utils/createUrqlClient.ts | 71 +++++-------------------------- 2 files changed, 16 insertions(+), 62 deletions(-) diff --git a/web/src/components/NavBar.tsx b/web/src/components/NavBar.tsx index fcf2db4a..59df4571 100644 --- a/web/src/components/NavBar.tsx +++ b/web/src/components/NavBar.tsx @@ -3,10 +3,12 @@ import { Box, Link, Flex, Button, Heading } from "@chakra-ui/core"; import NextLink from "next/link"; import { useMeQuery, useLogoutMutation } from "../generated/graphql"; import { isServer } from "../utils/isServer"; +import { useRouter } from "next/router"; interface NavBarProps {} export const NavBar: React.FC = ({}) => { + const router = useRouter(); const [{ fetching: logoutFetching }, logout] = useLogoutMutation(); const [{ data, fetching }] = useMeQuery({ pause: isServer(), @@ -39,8 +41,9 @@ export const NavBar: React.FC = ({}) => { {data.me.username}