Fix logout race condition
This commit is contained in:
parent
816382f638
commit
a5a8b96be1
|
@ -155,9 +155,9 @@ export function createAuthStore() {
|
||||||
await actions.getSelf()
|
await actions.getSelf()
|
||||||
},
|
},
|
||||||
logout: async () => {
|
logout: async () => {
|
||||||
setUser(null)
|
|
||||||
setPostLogout()
|
|
||||||
await API.logOut()
|
await API.logOut()
|
||||||
|
setPostLogout()
|
||||||
|
setUser(null)
|
||||||
await setInitInfo({})
|
await setInitInfo({})
|
||||||
},
|
},
|
||||||
updateSelf: async fields => {
|
updateSelf: async fields => {
|
||||||
|
|
Loading…
Reference in New Issue