him122
him122
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
Yep it is working now
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
By "works" I mean that the console.log get executed
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
Changing from "onClick" to "onclick" works, but it still does not redirect
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
I tried to console.log in the action but I see nothing
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
I thing that it is it
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
export const redirectAction = createAction(async () => {
return redirect$("/hello");
});
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;
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;
Still not redirecting
25 replies