-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/cli next/solid #132
base: master
Are you sure you want to change the base?
Feat/cli next/solid #132
Conversation
const [sessionExists, setSessionExists] = useState(false); | ||
useEffect(() => { | ||
Session.doesSessionExist().then((exists) => { | ||
setSessionExists(exists); | ||
}); | ||
}, []); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer if we used the useSessionContext
where it's available (in react), we do not want to give the impression that you need to do this (plus it's act
@@ -14,7 +14,7 @@ const loadScript = (src: string) => { | |||
|
|||
export const Auth = () => { | |||
onMount(() => { | |||
loadScript("${jsdeliveryprebuiltuiurl}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this.
const handleCall = handleAuthAPIRequest(); | ||
|
||
export const ALL: APIRoute = async ({ request }) => { | ||
console.log("api auth"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can remove this.
@@ -5,6 +5,7 @@ import type { APIRoute } from "astro"; | |||
const handleCall = handleAuthAPIRequest(); | |||
|
|||
export const ALL: APIRoute = async ({ request }) => { | |||
console.log("api auth"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are lots of this added. We can keep them but they seem unnecessary.
Summary of change