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