Skip to content
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

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Feat/cli next/solid #132

wants to merge 23 commits into from

Conversation

DBozhinovski
Copy link
Contributor

Summary of change

  • Solid implementation according to the reference doc and implementation
  • Simplifies UI code and styles significantly, in both React and Solid (according to @ITenthusiasm's feedback)

@DBozhinovski DBozhinovski marked this pull request as draft December 17, 2024 10:17
@DBozhinovski DBozhinovski marked this pull request as ready for review December 19, 2024 10:14
Comment on lines +6 to +11
const [sessionExists, setSessionExists] = useState(false);
useEffect(() => {
Session.doesSessionExist().then((exists) => {
setSessionExists(exists);
});
}, []);
Copy link
Collaborator

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}");
Copy link
Collaborator

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");
Copy link
Collaborator

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");
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants