Specta LogoSpecta
RspcTypescript apiTs rspc solid query

@rspc/solid-query

TypeScript API reference for @rspc/solid-query, version 0.0.0-main-5a753130.

Generated from the published type declarations for this exact release.

Public exports of @rspc/solid-query at version 0.0.0-main-5a753130.

This page documents 0.0.0-main-5a753130. The documented version is 0.3.1.

Functions

createSolidQueryHooks

export declare function createSolidQueryHooks<P extends rspc.ProceduresDef>(): {
    _rspc_def: P;
    Provider: (props: Solid.ParentProps<rspc.Context<P>>) => Solid.JSX.Element;
    useContext: () => rspc.Context<P>;
    createQuery: <K extends rspc.inferQueries<P>["key"] & string>(keyAndInput: () => [
        key: K,
        ...input: rspc._inferProcedureHandlerInput<P, "queries", K>
    ], opts?: rspc.HookOptions<P, rspc.QueryOptionsOmit<tanstack.CreateQueryOptions<rspc.inferQueryResult<P, K>, rspc.inferQueryError<P, K>, rspc.inferQueryResult<P, K>, () => [
        K,
        rspc.inferQueryInput<P, K>
    ]>>> | undefined) => tanstack.CreateQueryResult<rspc.inferQueryResult<P, K>, rspc.inferQueryError<P, K>>;
    createMutation: <K_1 extends rspc.inferMutations<P>["key"] & string, TContext = unknown>(key: K_1 | [
        K_1
// … truncated, see the source link

View source ↗

On this page