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