Kimblis
Kimblis
Explore posts from servers
TtRPC
Created by Kimblis on 6/25/2024 in #❓-help
New versions doesn't fit the docs?
Argument of type '{ refetchOnMount: false; refetchOnReconnect: false; refetchOnWindowFocus: false; trpc: { context: { skipBatch: boolean; }; }; }' is not assignable to parameter of type 'UseTRPCQueryOptions<"dashboard.getStationExercisesCountByDifficulties", { stationIds: string[]; }, { stationId: string; countByDifficulty: { Threshold: number; Satisfactory: number; Fundamental: number; Honorable: number; }; }[], { ...; }[], TRPCClientErrorLike<...>, { ...; }[]>'.
Property 'queryKey' is missing in type '{ refetchOnMount: false; refetchOnReconnect: false; refetchOnWindowFocus: false; trpc: { context: { skipBatch: boolean; }; }; }' but required in type 'UseTRPCQueryOptions<"dashboard.getStationExercisesCountByDifficulties", { stationIds: string[]; }, { stationId: string; countByDifficulty: { Threshold: number; Satisfactory: number; Fundamental: number; Honorable: number; }; }[], { ...; }[], TRPCClientErrorLike<...>, { ...; }[]>'
Argument of type '{ refetchOnMount: false; refetchOnReconnect: false; refetchOnWindowFocus: false; trpc: { context: { skipBatch: boolean; }; }; }' is not assignable to parameter of type 'UseTRPCQueryOptions<"dashboard.getStationExercisesCountByDifficulties", { stationIds: string[]; }, { stationId: string; countByDifficulty: { Threshold: number; Satisfactory: number; Fundamental: number; Honorable: number; }; }[], { ...; }[], TRPCClientErrorLike<...>, { ...; }[]>'.
Property 'queryKey' is missing in type '{ refetchOnMount: false; refetchOnReconnect: false; refetchOnWindowFocus: false; trpc: { context: { skipBatch: boolean; }; }; }' but required in type 'UseTRPCQueryOptions<"dashboard.getStationExercisesCountByDifficulties", { stationIds: string[]; }, { stationId: string; countByDifficulty: { Threshold: number; Satisfactory: number; Fundamental: number; Honorable: number; }; }[], { ...; }[], TRPCClientErrorLike<...>, { ...; }[]>'
5 replies
TtRPC
Created by Kimblis on 6/25/2024 in #❓-help
New versions doesn't fit the docs?
full error in batches (since message is too long) Full error:
No overload matches this call.
Overload 1 of 2, '(input: { stationIds: string[]; }, opts: DefinedUseTRPCQueryOptions<"dashboard.getStationExercisesCountByDifficulties", { stationIds: string[]; }, { stationId: string; countByDifficulty: { Threshold: number; Satisfactory: number; Fundamental: number; Honorable: number; }; }[], { ...; }[], TRPCClientErrorLike<...>, { ...; }[]>): DefinedUseTRPCQueryResult<...>', gave the following error.
Argument of type '{ refetchOnMount: false; refetchOnReconnect: false; refetchOnWindowFocus: false; trpc: { context: { skipBatch: boolean; }; }; }' is not assignable to parameter of type 'DefinedUseTRPCQueryOptions<"dashboard.getStationExercisesCountByDifficulties", { stationIds: string[]; }, { stationId: string; countByDifficulty: { Threshold: number; Satisfactory: number; Fundamental: number; Honorable: number; }; }[], { ...; }[], TRPCClientErrorLike<...>, { ...; }[]>'.
Type '{ refetchOnMount: false; refetchOnReconnect: false; refetchOnWindowFocus: false; trpc: { context: { skipBatch: boolean; }; }; }' is missing the following properties from type 'DefinedUseTRPCQueryOptions<"dashboard.getStationExercisesCountByDifficulties", { stationIds: string[]; }, { stationId: string; countByDifficulty: { Threshold: number; Satisfactory: number; Fundamental: number; Honorable: number; }; }[], { ...; }[], TRPCClientErrorLike<...>, { ...; }[]>': initialData, queryKey
Overload 2 of 2, '(input: { stationIds: string[]; }, opts?: UseTRPCQueryOptions<"dashboard.getStationExercisesCountByDifficulties", { stationIds: string[]; }, { stationId: string; countByDifficulty: { Threshold: number; Satisfactory: number; Fundamental: number; Honorable: number; }; }[], { ...; }[], TRPCClientErrorLike<...>, { ...; }[]> | undefined): UseTRPCQueryResult<...>', gave the following error.
No overload matches this call.
Overload 1 of 2, '(input: { stationIds: string[]; }, opts: DefinedUseTRPCQueryOptions<"dashboard.getStationExercisesCountByDifficulties", { stationIds: string[]; }, { stationId: string; countByDifficulty: { Threshold: number; Satisfactory: number; Fundamental: number; Honorable: number; }; }[], { ...; }[], TRPCClientErrorLike<...>, { ...; }[]>): DefinedUseTRPCQueryResult<...>', gave the following error.
Argument of type '{ refetchOnMount: false; refetchOnReconnect: false; refetchOnWindowFocus: false; trpc: { context: { skipBatch: boolean; }; }; }' is not assignable to parameter of type 'DefinedUseTRPCQueryOptions<"dashboard.getStationExercisesCountByDifficulties", { stationIds: string[]; }, { stationId: string; countByDifficulty: { Threshold: number; Satisfactory: number; Fundamental: number; Honorable: number; }; }[], { ...; }[], TRPCClientErrorLike<...>, { ...; }[]>'.
Type '{ refetchOnMount: false; refetchOnReconnect: false; refetchOnWindowFocus: false; trpc: { context: { skipBatch: boolean; }; }; }' is missing the following properties from type 'DefinedUseTRPCQueryOptions<"dashboard.getStationExercisesCountByDifficulties", { stationIds: string[]; }, { stationId: string; countByDifficulty: { Threshold: number; Satisfactory: number; Fundamental: number; Honorable: number; }; }[], { ...; }[], TRPCClientErrorLike<...>, { ...; }[]>': initialData, queryKey
Overload 2 of 2, '(input: { stationIds: string[]; }, opts?: UseTRPCQueryOptions<"dashboard.getStationExercisesCountByDifficulties", { stationIds: string[]; }, { stationId: string; countByDifficulty: { Threshold: number; Satisfactory: number; Fundamental: number; Honorable: number; }; }[], { ...; }[], TRPCClientErrorLike<...>, { ...; }[]> | undefined): UseTRPCQueryResult<...>', gave the following error.
5 replies
TtRPC
Created by Kimblis on 2/25/2024 in #❓-help
Sentry integration
Any help on this one?
5 replies
TtRPC
Created by Kimblis on 2/25/2024 in #❓-help
Sentry integration
Yeah, but the question is how to properly take the input, especially if its a query, is there any convenient ways or should I parse it from the url? Just overall practices are appreciated if someone already implemented this (just cant imagine that nobody did, since error logging is that important)
5 replies
TtRPC
Created by Kimblis on 3/19/2023 in #❓-help
trpc/react-query batching
Yeah, you were right, it was the problem from fastify, thank you guys ❤️ n1
5 replies