mardo
mardo
TTCTheo's Typesafe Cult
Created by mardo on 11/21/2023 in #questions
Next JS where to start?
Whats a good configuration where I am not going to get burnt on the bleeding edge, and I can just get productive relativity quick?
2 replies
TTCTheo's Typesafe Cult
Created by mardo on 11/16/2023 in #questions
Mac Terminal
Whats the goto mac terminal you guys are using out there?
6 replies
TTCTheo's Typesafe Cult
Created by mardo on 5/16/2023 in #questions
3rd Party Application
Anyone know a good approach to allow 3rd party applications to request authorization to this architecture, allow the user to approve permissions and issue credentials to the 3rd party application via normal oAuth standards? Basically trying to integrate the T3 stack into a Zappier app.
2 replies
TTCTheo's Typesafe Cult
Created by mardo on 5/14/2023 in #questions
Server Side Rendering
This is from the tRPC documentation on server side rendering. Does anyone know where the createcontext come from in T3 design? I can't seem to find it. import { createServerSideHelpers } from '@trpc/react-query/server'; import { GetServerSidePropsContext, InferGetServerSidePropsType } from 'next'; import { createContext } from 'server/context'; import { appRouter } from 'server/routers/_app'; import superjson from 'superjson'; import { trpc } from 'utils/trpc'; export async function getServerSideProps( context: GetServerSidePropsContext<{ id: string }>, ) { const helpers = createServerSideHelpers({ router: appRouter, ctx: await createContext(), transformer: superjson, }); const id = context.params?.id as string;
3 replies
TTCTheo's Typesafe Cult
Created by mardo on 5/12/2023 in #questions
infer from trpc calls
It appears trpc clients dont infer the return type, and I have to set it in useQuery like this.. const addressResult = api.registration.addressLookup.useQuery<{ a: string }>( { address: address }, { enabled: false } ); Is this the case?
8 replies
TTCTheo's Typesafe Cult
Created by mardo on 5/11/2023 in #questions
Next Auth or Clerk
So I want to use Clerk, should I pull out Next Auth and replace it with Clerk, or do they work OK together?
3 replies