redirect$
Use this function to redirect the user (this will not affect the function type):
import { createCaller, redirect$ } from '@solid-mediakit/prpc'
let redirect = false
export const myQuery = createCaller(() => { if (redirect) { return redirect$('/login') } return 'yes'})
Last updated: 5/30/25, 9:16 AM