SolidJSS
SolidJSβ€’11mo agoβ€’
7 replies
JOE

Server function not being called (?)

I'm sorry for asking help for something that should be so simple but I'm very confused.
I currently have a simple async server debug function:
export const Login = async (authType: AuthType) => {
  "use server";
  console.log("Login", authType);
};

and it's called here:
const handleGithubSignIn = async () => {
  return await Login(AuthType.Github);
};


Referenced in the button's onclick here:
      <button
        class="btn"
        onClick={() => {
          console.log("debug");
          handleGithubSignIn();
        }}
      >
        Debug Test
      </button>


The console log for the server isn't called, and neither is the client button even
There are no network requests being sent either
The build does not throw any errors, only some warnings which I believe do not pertain to this
The only debug info I have is in the picture attached

What could be going wrong?
image.png
Was this page helpful?