SolidJSS
SolidJSโ€ข2y agoโ€ข
3 replies
Greenman999

this is undefined

Hello I am trying to create an action with solidstart but i get the following error. Here is my code:
export default function Test() {
  const test = action(async () => {
    "use server";
    console.log("test");
  }, "test");

  onMount(() => test());

  return <h1>test</h1>;
}
start-screenshot.png
Was this page helpful?