Ali
Ali
TtRPC
Created by Ali on 3/15/2023 in #❓-help
Where can I add a query key?
@Nick Lucas no overload... I want use query keys only for caching purposes
No overload matches this call.
Overload 1 of 2, '(input: void | undefined, opts: DefinedUseTRPCQueryOptions<"prompts.tags", void | undefined, string[], string[], TRPCClientErrorLike<BuildProcedure<"query", { _config: RootConfig<{ ctx: { session: Session | null; }; meta: object; errorShape: DefaultErrorShape; transformer: { ...; }; }>; ... 5 more ...; _meta: object; }, string[]>>>): DefinedUseTRPCQueryResult<...>', gave the following error.
Argument of type 'never[] | string[]' is not assignable to parameter of type 'void | undefined'.
Type 'never[]' is not assignable to type 'void'.
Overload 2 of 2, '(input: void | undefined, opts?: UseTRPCQueryOptions<"prompts.tags", void | undefined, string[], string[], TRPCClientErrorLike<BuildProcedure<"query", { _config: RootConfig<{ ctx: { session: Session | null; }; meta: object; errorShape: DefaultErrorShape; transformer: { ...; }; }>; ... 5 more ...; _meta: object; }, string[]>>> | undefined): UseTRPCQueryResult<...>', gave the following error.
Argument of type 'never[] | string[]' is not assignable to parameter of type 'void | undefined'.
No overload matches this call.
Overload 1 of 2, '(input: void | undefined, opts: DefinedUseTRPCQueryOptions<"prompts.tags", void | undefined, string[], string[], TRPCClientErrorLike<BuildProcedure<"query", { _config: RootConfig<{ ctx: { session: Session | null; }; meta: object; errorShape: DefaultErrorShape; transformer: { ...; }; }>; ... 5 more ...; _meta: object; }, string[]>>>): DefinedUseTRPCQueryResult<...>', gave the following error.
Argument of type 'never[] | string[]' is not assignable to parameter of type 'void | undefined'.
Type 'never[]' is not assignable to type 'void'.
Overload 2 of 2, '(input: void | undefined, opts?: UseTRPCQueryOptions<"prompts.tags", void | undefined, string[], string[], TRPCClientErrorLike<BuildProcedure<"query", { _config: RootConfig<{ ctx: { session: Session | null; }; meta: object; errorShape: DefaultErrorShape; transformer: { ...; }; }>; ... 5 more ...; _meta: object; }, string[]>>> | undefined): UseTRPCQueryResult<...>', gave the following error.
Argument of type 'never[] | string[]' is not assignable to parameter of type 'void | undefined'.
5 replies
TtRPC
Created by Ali on 3/9/2023 in #❓-help
Hit external APIs ...
the organization key can be skipped if you hit their API from the client-side
11 replies
TtRPC
Created by Ali on 3/9/2023 in #❓-help
Hit external APIs ...
From the first look, I saw you are missing the organization key in the configuration.
11 replies
TtRPC
Created by Ali on 3/9/2023 in #❓-help
Hit external APIs ...
actually, I need both. I need to perform requests to internal & external APIs
11 replies