mirror of
https://github.com/Telecominfraproject/wlan-cloud-ui.git
synced 2025-11-02 03:37:59 +00:00
Do not reset store when user is authenticated. Instead clear cache.
This commit is contained in:
@@ -27,7 +27,7 @@ const Login = () => {
|
||||
const handleLogin = (email, password) => {
|
||||
authenticateUser({ variables: { email, password } })
|
||||
.then(({ data }) => {
|
||||
client.resetStore();
|
||||
client.cache.reset();
|
||||
updateToken(data.authenticateUser);
|
||||
history.push('/');
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user