Kimblis
Kimblis
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
TtRPC
Created by Kimblis on 3/1/2023 in #❓-help
Issue with monorepo architecture ant tRPC
Superjson is added in all services and share the same version. As for @Nick Lucas answer, there would be an additional question- if our backend services needs to communicate between themselves, is creating a trpc client a good path? Because this is what I am doing rn, that's why there are these paths.
42 replies
TtRPC
Created by Kimblis on 3/1/2023 in #❓-help
Issue with monorepo architecture ant tRPC
also how much it would impact performance If we would go to older versions and don't use batch requests?
42 replies
TtRPC
Created by Kimblis on 3/1/2023 in #❓-help
Issue with monorepo architecture ant tRPC
any way to describe routes? Without writing typescript types from scratch?
42 replies
TtRPC
Created by Kimblis on 3/1/2023 in #❓-help
Issue with monorepo architecture ant tRPC
UPDATE* If I add import type {} from 'superjson'; on top of every route then it removes these errors at least on vs code, however if I try to build I still get errors, but then with other packages like fastify, fastify types and etc... 😄 So it's a rabbit hole
42 replies
TtRPC
Created by Kimblis on 3/1/2023 in #❓-help
Issue with monorepo architecture ant tRPC
but the end of that route is still node_modules of the service that is throwing this issue, so it's using his own superjson
42 replies
TtRPC
Created by Kimblis on 3/1/2023 in #❓-help
Issue with monorepo architecture ant tRPC
Yeah I was looking into this one this morning, didn't found anything that would help :/ Talking about the route since I'm using clients in my API's to communicate between backend services, maybe it's using that in build
42 replies
TtRPC
Created by Kimblis on 3/1/2023 in #❓-help
Issue with monorepo architecture ant tRPC
It's locating in the same one
42 replies