We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 401a73c commit 8a828b6Copy full SHA for 8a828b6
site/contexts/UserContext.tsx
@@ -51,8 +51,8 @@ export const UserProvider: React.FC = (props) => {
51
const signOut = async () => {
52
await API.logout()
53
// Tell SWR to invalidate the cache for the user endpoint
54
- mutate("/api/v2/users/me")
55
- router.push({
+ await mutate("/api/v2/users/me")
+ await router.push({
56
pathname: "/login",
57
query: {
58
redirect: router.asPath,
0 commit comments