export const redirectAction = createAction(async () => { return redirect$("/hello");});
import { type VoidComponent } from "solid-js";import { redirectAction } from "~/server/hello/hello.queries";const Home: VoidComponent = () => { const redirect = redirectAction(); return ( <main> <button onclick={async () => await redirect.mutateAsync({})}> {/* <button type="button" onclick={async () => await redirectAction()}> */} Redirect aaaaaaaaaaaaaaaaaa </button> </main> );};export default Home;