OrJDev
OrJDev
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
Awesome
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
published
pnpm install @solid-mediakit/prpc@latest @solid-mediakit/prpc-plugin@latest
pnpm install @solid-mediakit/prpc@latest @solid-mediakit/prpc-plugin@latest
this should fix it
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
@him122 found the issue with the help of @Brendonovich so releasing a new version in a minute if you are up to test it
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
Yes i think i just found an issue with the useNavigate hook, updated Ryan so hopefully we figure it out soon
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
If it doesn’t work lmk i will fix it in a bit i think i might know what is it
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
^ try
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
Is this the issue?
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
onClick instead of onclick
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
Is the request being made?
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
Oh wait
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
That’s odd, if you open the network tab what does the response look like
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
Bur pRPC is smart enough to omit out the redirect type and only take the actual return type
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
In solid you use throw redirect instead of returning - in order to not confuse the actual return type of the function
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
Its not being used the same way it is in server function
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
In pRPC, redirect is a utility function
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
Instead of throw
25 replies
SSolidJS
Created by him122 on 11/5/2024 in #support
pRPC - redirect not working in callers
return redirect$(
25 replies
SSolidJS
Created by Don on 11/2/2024 in #support
server function error handling
7 replies
SSolidJS
Created by Don on 11/2/2024 in #support
server function error handling
you could just return a response and set any status code you wnat
7 replies