simpler routing without react router...better for me

This commit is contained in:
talksik
2022-03-18 10:29:53 -04:00
parent aca9c5a12d
commit 9950a69efa
7 changed files with 14 additions and 55 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ export function useGetUserDetails() {
return useQuery(
Querytypes.GET_USER_DETAILS,
() => getUserDetails(authTokens.accessToken, authTokens.idToken),
() => getUserDetails(authTokens?.accessToken, authTokens?.idToken),
{
retry: false,
}
+1 -1
View File
@@ -4,7 +4,7 @@ export const $authTokens = atom<{
accessToken: string;
refreshToken: string;
idToken: string;
}>({
} | null>({
key: "AUTH_TOKENS", // unique ID (with respect to other atoms/selectors)
default: null, // default value (aka initial value)
});