Spark
Spark
Explore posts from servers
TtRPC
Created by Spark on 8/31/2024 in #❓-help
calling tRPC procedure from custom link
just import and use the supabase client directly, not from auth-helpers... const { data } = await supabase.auth.getSession(); from import { supabase } from "~/utils/supabase";. oops!
4 replies
TTCTheo's Typesafe Cult
Created by Spark on 1/7/2024 in #questions
trying to integrate solito in create-t3-turbo
it was some of the app router and "use client" stuff. awesome to hear that it is playing nicely now!
7 replies
TTCTheo's Typesafe Cult
Created by Spark on 1/7/2024 in #questions
trying to integrate solito in create-t3-turbo
No. There were a lot of bugs when I tried. I haven't tried to work with it since.
7 replies
TtRPC
Created by Spark on 8/31/2024 in #❓-help
calling tRPC procedure from custom link
currently using a helper vanilla client approach, but if I want to pass supabase auth I may have to wrap app in a second TRPCProvider and try to use the utils of the parent in the custom link of the child provider?
4 replies
TtRPC
Created by Luka on 7/1/2024 in #❓-help
TRPC with Turborepo Nextjs
I have been following https://github.com/t3-oss/create-t3-turbo/tree/main where tRPC is in a separate package like you are saying, and it is hosted on Vercel with the Next.js app. I think the main advantage for a separate package is flexibility. If you wanted to decouple the tRPC API from the Next.js app later you could use the package in a separate tRPC app like https://ion.sst.dev/docs/start/aws/trpc/. This is more complex, but better with scale.
3 replies
DTDrizzle Team
Created by Jaxwn on 8/27/2023 in #help
Reference to auth.users?
I just manually added the foreign key from public.profile id -> auth.users id and followed this https://supabase.com/docs/guides/auth/managing-user-data#using-triggers
7 replies
TtRPC
Created by carnegiepilled on 1/30/2024 in #❓-help
Why is my tRPC + Next 14 (app router) data fetching pattern not refreshing the UI?
I would take a look at the create-t3-turbo repo and study the data fetching patterns. https://github.com/t3-oss/create-t3-turbo/blob/main/apps/nextjs/src/app/page.tsx Thoughts: 1. not sure if always correct, but I like to keep my pages as server components and import client components if needed 2. to revalidate you can use this https://trpc.io/docs/client/react/useUtils#query-invalidation
4 replies
TtRPC
Created by Spark on 1/30/2024 in #❓-help
optimistic updates tRPC v11 + TanStack Query v5
I am just using the cache approach for now
3 replies
TTCTheo's Typesafe Cult
Created by robertinio on 11/7/2023 in #questions
Suspense with TRPC server query
you just have to remove the await. here is an example: https://github.com/t3-oss/create-t3-turbo/blob/main/apps/nextjs/src/app/page.tsx
6 replies
TTCTheo's Typesafe Cult
Created by tachito - pablokitz on 1/11/2024 in #questions
Passing config prop to zod schema for dynamic refinement
3 replies
TTCTheo's Typesafe Cult
Created by Spark on 1/7/2024 in #questions
trying to integrate solito in create-t3-turbo
getting close, but I am having to put "use client" in the layout.tsx file for some reason? not playing nice with app router. will come back to this later.
7 replies
TTCTheo's Typesafe Cult
Created by _-/=elusive1sTh3Byte=-\_ on 1/3/2024 in #questions
Developing a UI without a design
I personally just use shadcn/ui and Tailwind UI in the early stages of a project. I just take 1 step at a time and pick whatever component looks the best for the thing I am trying to make. You can waste so much time over designing something you don't even need in a few days.
55 replies
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
TypeError: queryClient.getMutationDefaults is not a function
TypeError: queryClient.getMutationDefaults is not a function
123 replies
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
awesome, thanks! didn't realize we could just use the auth() function instead of getAuth() now. have you been able to useMutation? I keep getting an error, but it might just be my mistake.
123 replies
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
right, I implemented those changes, but are you still setting auth in trpc.ts on the ctx?
123 replies
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
anyone have a clerk example working with the newest create-t3-app? where do we set auth?
123 replies