ayoub
ayoub
TTCTheo's Typesafe Cult
Created by Aleed.dev on 9/4/2024 in #questions
data optimization
I could be happy to help
4 replies
TTCTheo's Typesafe Cult
Created by Mozart's_Ghost on 8/31/2024 in #questions
Unexpected useQuery behavior
Can you elaborate further? What do you mean on interval? Please provide the console log output.
3 replies
TTCTheo's Typesafe Cult
Created by Preston on 8/28/2024 in #questions
React Native
Don't use redux, use something simpler, use Zustand. You can also use the context but it will be a bit messy.
3 replies
TTCTheo's Typesafe Cult
Created by JulieCezar on 8/30/2024 in #questions
App crashes when TRPC error is thrown on the server
On nextjs you can create and error.tsx to handle the error on the client, otherwise you can change the behaviour of the protected procedure to return instead of throwing, but I recommend to keep the default and throw.
4 replies
TTCTheo's Typesafe Cult
Created by Erhan Yaşar on 8/28/2024 in #questions
How to setup initial db and application configs?
In case you still have an issue, you may DM me directly and I can walk you through solving the issue in a call
9 replies
TTCTheo's Typesafe Cult
Created by Erhan Yaşar on 8/28/2024 in #questions
How to setup initial db and application configs?
I am confident that will solve your issue
9 replies
TTCTheo's Typesafe Cult
Created by Erhan Yaşar on 8/28/2024 in #questions
How to setup initial db and application configs?
When it comes to the connection poolet, please set it to transaction mode
9 replies
TTCTheo's Typesafe Cult
Created by Erhan Yaşar on 8/28/2024 in #questions
How to setup initial db and application configs?
You set the password from the console , just click reset database password and you'll get the new password
9 replies
TTCTheo's Typesafe Cult
Created by Erhan Yaşar on 8/28/2024 in #questions
How to setup initial db and application configs?
This is config for supabase postgresql://[USERNAME].[PROJECT-ID]:[YOUR-PASSWORD]@aws-0-eu-central-1.pooler.supabase.com:6543/postgres this is just an example, get the URI from your supabase console, shouldn't be too different to a local porstgres instnce
9 replies
TTCTheo's Typesafe Cult
Created by Mocha on 8/26/2024 in #questions
Migrating from T3 to T3 Turborepo
if you can share the code producing this error ?
13 replies
TTCTheo's Typesafe Cult
Created by Mocha on 8/26/2024 in #questions
Migrating from T3 to T3 Turborepo
here's a guide from Julius https://www.jumr.dev/blog/t3-turbo
13 replies
TTCTheo's Typesafe Cult
Created by Mocha on 8/26/2024 in #questions
Migrating from T3 to T3 Turborepo
Just migrate to a turborepo project, shouldn't take more than an hour or two
13 replies
TTCTheo's Typesafe Cult
Created by Ace on 8/4/2024 in #questions
From 0 to production tutorial help with uploadthing implementation - UploadButton stuck on loading
Provide the code where you actually render the button.
6 replies
TTCTheo's Typesafe Cult
Created by Ace on 8/4/2024 in #questions
From 0 to production tutorial help with uploadthing implementation - UploadButton stuck on loading
can you provide paste both your component and server code ?
6 replies
TTCTheo's Typesafe Cult
Created by Acridly on 8/3/2024 in #questions
props with uploadthing
if you set the input in your endpoint following the docs like this : import { z } from "zod"; f(["imageEndpoint"]) .input(z.object({ foo: z.string() })) .middleware(async ({ req, input }) => { input; // ^? { foo: string } return {}; }) .onUploadComplete(async () => {}); you can then pass the input in the component as <UploadButton<OurFileRouter> endpoint="imageEndpoint" onClientUploadComplete={(res) => { // Do something with the response console.log("Files: ", res); alert("Upload Completed"); }} input={{ foo: "your-string" }} />
8 replies
TTCTheo's Typesafe Cult
Created by gnarley_farley. on 8/1/2024 in #questions
USing the latest t3turbo with prisma
if you're using one of these services for your db PostgreSQL Neon PlanetScale Turso Cloudflare D1 you can use their http driver to make queries from vercel edge runtime
4 replies
TTCTheo's Typesafe Cult
Created by gnarley_farley. on 8/1/2024 in #questions
USing the latest t3turbo with prisma
you should remove : export const runtime = "edge" or change it to "node"
4 replies
TTCTheo's Typesafe Cult
Created by Pupok on 8/2/2024 in #questions
How to add metadata to file been uploaded?
There's another way, you can add an input to your server logic and validate it using zod https://docs.uploadthing.com/api-reference/server#input
3 replies
TTCTheo's Typesafe Cult
Created by Acridly on 8/3/2024 in #questions
props with uploadthing
if you you're not doing this within a form you can use a zod schema to validate an input https://docs.uploadthing.com/api-reference/server#input
8 replies
TTCTheo's Typesafe Cult
Created by Acridly on 8/3/2024 in #questions
props with uploadthing
if you're using the button/dropzone component within a form you can do it through onClientUploadComplete={(res) => {}} that returns the file url in the response
8 replies