mirror of
https://github.com/Av0idD4rk/firegex.git
synced 2026-10-23 16:31:00 +00:00
Invalidate cache on login
This commit is contained in:
parent
753ed241b6
commit
f3024cc9a8
@ -120,6 +120,7 @@ function App() {
|
||||
setLoadingBtn(true)
|
||||
await login(values).then(res => {
|
||||
if(!res){
|
||||
queryClient.invalidateQueries()
|
||||
setSystemStatus({...systemStatus, loggined:true})
|
||||
}else{
|
||||
setError("Login failed")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user