diff --git a/src/Tools/_framework/Paths/Community.jsx b/src/Tools/_framework/Paths/Community.jsx index 5f2b67b748..290a9db321 100644 --- a/src/Tools/_framework/Paths/Community.jsx +++ b/src/Tools/_framework/Paths/Community.jsx @@ -50,7 +50,8 @@ export default function Community(props){ let context = useOutletContext(); const loaderData = useLoaderData(); const carouselData = loaderData?.carouselData; - + + //Don't do more processing if we don't know if we are signed in or not if (context.signedIn == null){ return null;} return <> diff --git a/src/Tools/_framework/Paths/Home.jsx b/src/Tools/_framework/Paths/Home.jsx index 252e53d569..0aabffe9b4 100644 --- a/src/Tools/_framework/Paths/Home.jsx +++ b/src/Tools/_framework/Paths/Home.jsx @@ -1,5 +1,5 @@ import React, { lazy, Suspense, useEffect, useRef, useState } from 'react'; -import { useLoaderData } from 'react-router'; +import { useLoaderData, useOutletContext } from 'react-router'; import styled from 'styled-components'; import Button from '../../../_reactComponents/PanelHeaderComponents/Button'; // import { checkIfUserClearedOut } from '../../../_utils/applicationUtils'; @@ -217,10 +217,10 @@ export async function loader(){ return data; } -export function Home(props) { +export function Home() { + let context = useOutletContext(); const loaderData = useLoaderData(); const favorites = loaderData?.carouselData?.[3]; - // let navigate = useNavigate(); const setVariantPanel = useSetRecoilState(pageVariantPanelAtom); const [variantInfo, setVariantInfo] = useRecoilState(pageVariantInfoAtom); @@ -237,11 +237,8 @@ export function Home(props) { }); } - - // let signInButton =