coder2000
coder2000
Explore posts from servers
TtRPC
Created by coder2000 on 4/11/2025 in #❓-help
Error using prefetch query with TanStack Query
No. I didn't see anything like that one. I did put superjson in a different place though
10 replies
TtRPC
Created by Vilian on 4/13/2025 in #❓-help
signup/signin
Cookies cannot be set in a TRPC router so server actions may be the preferred method.
3 replies
TtRPC
Created by coder2000 on 4/11/2025 in #❓-help
Error using prefetch query with TanStack Query
This is my query client file:
import {
QueryClient,
defaultShouldDehydrateQuery,
} from "@tanstack/react-query";

export function makeQueryClient() {
return new QueryClient({
defaultOptions: {
queries: {
staleTime: 30 * 1000,
},
dehydrate: {
shouldDehydrateQuery: (query) => defaultShouldDehydrateQuery(query),
},
hydrate: {},
},
});
}
import {
QueryClient,
defaultShouldDehydrateQuery,
} from "@tanstack/react-query";

export function makeQueryClient() {
return new QueryClient({
defaultOptions: {
queries: {
staleTime: 30 * 1000,
},
dehydrate: {
shouldDehydrateQuery: (query) => defaultShouldDehydrateQuery(query),
},
hydrate: {},
},
});
}
If you have something adding pending queries I would remove it.
10 replies
TtRPC
Created by coder2000 on 4/11/2025 in #❓-help
Error using prefetch query with TanStack Query
I removed the pending status queries from the dehydrate config
10 replies
TtRPC
Created by coder2000 on 4/10/2025 in #❓-help
Wrong type for results
Thanks
5 replies
DTDrizzle Team
Created by coder2000 on 2/17/2025 in #help
Install latest version of drizzle-orm
Nevermind. Changed pnpx to pnpm and it worked fine.
2 replies