josh-dev627
Explore posts from serversDTDrizzle Team
•Created by josh-dev627 on 4/6/2024 in #help
How to run migrations that is inside node_modules?
I have created a package for my application that I can install for my main application, the package has it's own schema and migrations. If I install the package in my application how would I run the migration if it is inside the node_modules?
2 replies
DTDrizzle Team
•Created by josh-dev627 on 4/5/2024 in #help
Error in studio when running migrate, but no error when running push
Everytime I manually run my migrator which is: pnpm tsx migrate.ts, when I open my studio I always get an error like: SQLITE_ERROR: no such column: phone or any changes that I applied with it.
However, when running push to apply the same changes, I don't get the same error on studio. Is this something we should be concerned about? or this normal?
This is how my migrate.ts looks like:
1 replies
TTCTheo's Typesafe Cult
•Created by josh-dev627 on 6/1/2023 in #questions
Bidrectional Infinite Scrolling Implementation
Hi guys have you ever implemented something like this in a chat application? or any application for that matter, where your infinite scrolling is able to to scroll 2 directions and add items to the initial items either at the start or at the end of the items based on the direction of the scrolling of the user, I find this really hard to implement. Currently using react-infinite-scroller. Any help would be greatly appreciated! Thank you!
3 replies
TTCTheo's Typesafe Cult
•Created by josh-dev627 on 5/28/2023 in #questions
Stripe Webhook Event Duplication
Hi guys! I'm using t3 with stripe and I'm worried that there might be duplication of events based on the documentation. How do you make your handler idempotent?
1 replies
TTCTheo's Typesafe Cult
•Created by josh-dev627 on 5/18/2023 in #questions
Shadcn fonts not working
Hi! So I'm using shadcn for as my component library. I'm using the Dialog component together with nextjs but using nextjs fonts does not apply to other components of shadcn, especially in my dialog content. Do you guys know how I might be able to fix this? Thank you!
5 replies
Querying external api in trpc router not working
Hi guys! So I'm trying to query an api endpoint that I created through a separate node server inside my trpc router, I'm fetching it using axios but it does not work at the moment. I can't seem to figure out why.
2 replies
TTCTheo's Typesafe Cult
•Created by josh-dev627 on 5/12/2023 in #questions
Querying external api in trpc router not working
Hi guys! So I'm trying to query an api endpoint that I created through a separate node server inside my trpc router, I'm fetching it using axios but it does not work at the moment. I can't seem to figure out why.
1 replies
TTCTheo's Typesafe Cult
•Created by josh-dev627 on 5/11/2023 in #questions
TRPC Context
Hi guys! I was wondering when the trpc context is created? is it created at every request? I was wondering because I'm adding a query to my database inside my trpc context just so I get additional user info that is needed in my routers or do we have a better way to do this instead? Thank you!
7 replies
TTCTheo's Typesafe Cult
•Created by josh-dev627 on 5/5/2023 in #questions
How do you setup Shadcn with Create t3?
16 replies
TTCTheo's Typesafe Cult
•Created by josh-dev627 on 5/2/2023 in #questions
Consuming external API with TRPC.
Hi so I have created this TRPC query that consumes an api from a node server:
But it's not fetching anything, any idea what I might have missed?
5 replies
TTCTheo's Typesafe Cult
•Created by josh-dev627 on 4/28/2023 in #questions
shadcn ui dark mode
Hi guys! Are you using nextjs with tailwind and shadcn? How do you implement dark mode?
5 replies
TTCTheo's Typesafe Cult
•Created by josh-dev627 on 4/25/2023 in #questions
Client-Side Fetching with React-Query
Hi guys! so I have an external api that I needed to consume on the client-side. I assume that I don't need to setup anything since trpc already included react-query as a dependency so what I did was just imported useQuery from @tanstack/react-query and use:
But I constantly see undefined as a result to the data, and Can't even see the request being sent in the network tab. Am I missing something? Thank you!
15 replies
TTCTheo's Typesafe Cult
•Created by josh-dev627 on 4/20/2023 in #questions
Multi-tenant Saas Application
Hi guys! I don't how best to implement this but basically I'm trying to create a saas application that is 3 levels deep. By this I mean, There is a master admin that manages the organizations/tenants, The tenants will have normal users or they might have teams, then Teams would have Team members and team admin.
This is quite a lot for me and I don't know where to start. I'm planning to use next-auth btw. Thank you so much for any kind of help!
4 replies
TTCTheo's Typesafe Cult
•Created by josh-dev627 on 4/17/2023 in #questions
How to handle invalidate queries
Hi guys! how do you handle invalidate queries after a successful mutation, what I did is I added a invalidate call to my onSuccess callback in my mutation. This does invalidate my getAllProjects query, however it takes a little bit of time to load. Do you have any suggestions how I might be able to add a loading state while the invalidation happens?
25 replies
TTCTheo's Typesafe Cult
•Created by josh-dev627 on 4/13/2023 in #questions
Workflow with Planetscale
Hi Guys! I'm just curious what's your usual workflow when working with planetscale and you have schema changes? Because all the data will be lost after db push command. Does this not affect your development? Or do we have some best practices and tips? Thank you!
Btw do you just seed data needed for the app to work?
10 replies
TTCTheo's Typesafe Cult
•Created by josh-dev627 on 4/11/2023 in #questions
Hi guys! So I'm planning to buy a domain from vercel like app.co
Hi guys! So I'm planning to buy a domain from vercel like app.co, I was confused how I'm going to be able to have [email protected] but I'm confused since vercel does not provide email services, where do you guys usually do this? THank you for your help!
3 replies