feat(lst): tan stack routes added with protected routes
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import {useState} from "react";
|
||||
import {useSessionStore} from "../lib/store/sessionStore";
|
||||
import {useSessionStore} from "../../lib/store/sessionStore";
|
||||
import {useQueryClient} from "@tanstack/react-query";
|
||||
|
||||
const LoginForm = () => {
|
||||
@@ -36,7 +36,7 @@ const LoginForm = () => {
|
||||
setSession(data.data.token);
|
||||
|
||||
// Refetch the session data to reflect the logged-in state
|
||||
queryClient.invalidateQueries(["session"]);
|
||||
queryClient.invalidateQueries();
|
||||
|
||||
setUsername("");
|
||||
setPassword("");
|
||||
Reference in New Issue
Block a user