JJ Rise
JJ Rise
TTCTheo's Typesafe Cult
Created by Papa Johns on 11/6/2023 in #questions
Clean Architecture
Like setting up a monorepo?
19 replies
TTCTheo's Typesafe Cult
Created by BigBellyBigDreams on 11/6/2023 in #questions
useRouter import not working?
I believe you need to be importing useRouter from next/navigation not next/router
2 replies
TTCTheo's Typesafe Cult
Created by Eddy on 11/2/2023 in #questions
tRPC alternatives for a simple public API
I had a very similar use case. We have a large private tRPC api for our t3 based monorepo and wanted to expose a handful of public endpoints. I ended up setting up Hono as a package and doing it that way. Could still share my db instance and was pretty smooth for the most part.
11 replies
TTCTheo's Typesafe Cult
Created by JJ Rise on 3/19/2023 in #questions
Looking for advice on how to fetch/load an onboarding banner
makes sense, thanks for the insight
9 replies
TTCTheo's Typesafe Cult
Created by JJ Rise on 3/19/2023 in #questions
Looking for advice on how to fetch/load an onboarding banner
yeah that's a great thought... i adjusted the cache and stale times now. But you're correct, if I seemingly go any further I lose the ability to maintain the banner for compliance (payment methods, etc)
9 replies
TTCTheo's Typesafe Cult
Created by JJ Rise on 3/19/2023 in #questions
Looking for advice on how to fetch/load an onboarding banner
correct, but the consideration is not whether or not it has to run, but if there are steps to optimize. For example, changing cache and stale times was a good suggestion.
9 replies
TTCTheo's Typesafe Cult
Created by JJ Rise on 3/19/2023 in #questions
Looking for advice on how to fetch/load an onboarding banner
yeah I set the stale time and cache times to be more appropriate. They aren't the aggressive defaults anymore.
9 replies
TTCTheo's Typesafe Cult
Created by jonnyfapson on 3/19/2023 in #questions
Is there something like tailwind ui / headless ui for react native?
on the web, I use tailwind and it works well even with UI component libraries like Mantine that don't internally use tailwind. But on RN, this doesn't work nearly as well and I find myself using the default StyleSheet api more than I would hope.
6 replies
TTCTheo's Typesafe Cult
Created by jonnyfapson on 3/19/2023 in #questions
Is there something like tailwind ui / headless ui for react native?
for react native, tailwind isn't exactly the same as the web. Nativewind is one of the better implementations of it for RN, but it definitely has some idiosyncrasies and differences than the web.
6 replies
TTCTheo's Typesafe Cult
Created by Aviv on 3/19/2023 in #questions
Stripe webhook error
here is what mine looks like also, I'm not sure how much it matters, but the api version in that gist you sent is a lot older
4 replies
TTCTheo's Typesafe Cult
Created by Aviv on 3/19/2023 in #questions
Stripe webhook error
I just got done doing this yesterday and it's working for me. Are you saving the webhook secret in your environmental variables? const webhookSecret: string = process.env.STRIPE_WEBHOOK_SECRET! that error is basically saying you aren't passing the try block for stripe.webhooks.constructEvent https://gist.github.com/jjrise/7d9167c22e3353f76f673d444ad17207
4 replies
TTCTheo's Typesafe Cult
Created by JJ Rise on 1/27/2023 in #questions
Relations between Clerk Users with Prisma db
Sorry driving now so hard to message but hopefully makes sense
13 replies
TTCTheo's Typesafe Cult
Created by JJ Rise on 1/27/2023 in #questions
Relations between Clerk Users with Prisma db
And added @unique to that field and kinda ignore the normal User ID for relations
13 replies
TTCTheo's Typesafe Cult
Created by JJ Rise on 1/27/2023 in #questions
Relations between Clerk Users with Prisma db
There are some extra tables in your schema that are particular to nextauth. I ultimately removed those and added a field ‘clerkuserid’ to my Users table.
13 replies
TTCTheo's Typesafe Cult
Created by JJ Rise on 1/27/2023 in #questions
Relations between Clerk Users with Prisma db
Yep so I had some issues, but mostly schema issues on my end, not necessarily clerk issues
13 replies
TTCTheo's Typesafe Cult
Created by JJ Rise on 1/27/2023 in #questions
Relations between Clerk Users with Prisma db
I completely transitioned to Clerk now. I’m actually using it in turbo repo with 2 apps sharing the same Clerk application
13 replies
TTCTheo's Typesafe Cult
Created by JJ Rise on 2/1/2023 in #questions
Issues with 'pnpm install' using t3-turbo-and-clerk
after a day of wrestling with this, I finally resolved it after updating node, pnpm, and turbo... not sure which of those was the thing that made it work, but updating was the trick I guess...
3 replies
TTCTheo's Typesafe Cult
Created by Yoers on 1/8/2023 in #questions
How to make tRPC calls from the server side
I'm using createContextInner and passing 'session: null'... but getting an arbitrary {"code":"INTERNAL_SERVER_ERROR","name":"TRPCError"}
6 replies
TTCTheo's Typesafe Cult
Created by Yoers on 1/8/2023 in #questions
How to make tRPC calls from the server side
@yoers did you have any luck with this?
6 replies
TTCTheo's Typesafe Cult
Created by JJ Rise on 1/5/2023 in #questions
add fields to session
you are absolutely right! This is exactly what I needed, thank you!!!!
6 replies