How can I conditionally render a React component if a sessionStorage variable does not exist in Next.js?
I have an <Authenticated>
component that is used to render all of my authenticated routes. I want to prevent rendering the page until I have checked a token stored in sessionStorage
.
How can I conditionally render a React component if a sessionStorage variable does not exist in Next.js?
I have an <Authenticated>
component that is used to render all of my authenticated routes. I want to prevent rendering the page until I have checked a token stored in sessionStorage
.
How can I conditionally render a React component if a sessionStorage variable does not exist in Next.js?
I have an <Authenticated>
component that is used to render all of my authenticated routes. I want to prevent rendering the page until I have checked a token stored in sessionStorage
.
How can I conditionally render a React component if a sessionStorage variable does not exist in Next.js?
I have an <Authenticated>
component that is used to render all of my authenticated routes. I want to prevent rendering the page until I have checked a token stored in sessionStorage
.