him122
him122
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
When using the redirect$ function from prcp or the redirect function from solid-router it just does not redirect.
export const redirectAction = createAction(async () => {
throw redirect$("/hello");
});
export const redirectAction = createAction(async () => {
throw redirect$("/hello");
});
Doing the same in a plain server function works as intended.
export const redirectQuery = cache(async () => {
"use server";

throw redirect$("/hello");
}, "redirectQuery");
export const redirectQuery = cache(async () => {
"use server";

throw redirect$("/hello");
}, "redirectQuery");
25 replies