Matvey
Matvey
TTCTheo's Typesafe Cult
Created by johnny the fifth on 6/30/2024 in #questions
Do i use server components , actions over express JS for my App
Coming back to the original question, server actions are a lot better because you don't lose typesafety
14 replies
TTCTheo's Typesafe Cult
Created by johnny the fifth on 6/30/2024 in #questions
Do i use server components , actions over express JS for my App
but it's hard to implement correctly
14 replies
TTCTheo's Typesafe Cult
Created by johnny the fifth on 6/30/2024 in #questions
Do i use server components , actions over express JS for my App
JWT is ok if you implement it correctly
14 replies
TTCTheo's Typesafe Cult
Created by johnny the fifth on 6/30/2024 in #questions
Do i use server components , actions over express JS for my App
don't use express if you already have a nextjs app. Just create route.ts files.
14 replies
TTCTheo's Typesafe Cult
Created by Zefty on 6/30/2024 in #questions
Anyone familiar with useOptimistic hook to explain how it works???
Jack Herrington has a great video on useOptimistic - https://youtu.be/QWVr7uDyBXE
4 replies
TTCTheo's Typesafe Cult
Created by Zefty on 6/30/2024 in #questions
Anyone familiar with useOptimistic hook to explain how it works???
Yea, you need to revalidate the data in the server action
4 replies
TTCTheo's Typesafe Cult
Created by LordSilver on 6/30/2024 in #questions
Theo's app to not leak secrets on stream
5 replies
TTCTheo's Typesafe Cult
Created by LordSilver on 6/30/2024 in #questions
Theo's app to not leak secrets on stream
cloak vscode extension?
5 replies
TTCTheo's Typesafe Cult
Created by tmonaco on 6/19/2024 in #questions
ESLint config
It makes you always use === instead of ==
7 replies
TTCTheo's Typesafe Cult
Created by Jeremy on 6/20/2024 in #questions
No env variables found with turbo v2.0.4 with t3-app
{
"tasks": {
"build": {
"env": ["*"]
}
}
{
"tasks": {
"build": {
"env": ["*"]
}
}
16 replies
TTCTheo's Typesafe Cult
Created by Jeremy on 6/20/2024 in #questions
No env variables found with turbo v2.0.4 with t3-app
In turbo.json add env: ["*"] option to the task
16 replies
TTCTheo's Typesafe Cult
Created by Harshlions on 6/20/2024 in #questions
How does the cli works
Your question is too vague, I don't even know how to answer it. You can fork the project and look in the cli folder
6 replies
TTCTheo's Typesafe Cult
Created by Muhct on 6/20/2024 in #questions
Best practices for typing a reusable button?
You can have something like this
type ButtonProps = React.ComponentProps<"button"> & {
leftIcon?: ReactElement<SVGSVGElement>;
'data-testid'?: string;
};
type ButtonProps = React.ComponentProps<"button"> & {
leftIcon?: ReactElement<SVGSVGElement>;
'data-testid'?: string;
};
and then
<button
css={styles(leftIcon)}
data-testid={testId}
{...otherProps}
>
<button
css={styles(leftIcon)}
data-testid={testId}
{...otherProps}
>
6 replies
TTCTheo's Typesafe Cult
Created by TheSwordBreaker on 6/20/2024 in #questions
How to Call Hooks in sequence way
Create a child component and call the second hook there
5 replies
TTCTheo's Typesafe Cult
Created by 草里野兔子 on 6/19/2024 in #questions
what is YOUR_TOKEN
i think the secret is the api key
14 replies
TTCTheo's Typesafe Cult
Created by tmonaco on 6/19/2024 in #questions
ESLint config
The default rules in create-t3-app are great, I usually also add the eqeqeq rule to the default config and that's it
7 replies
TTCTheo's Typesafe Cult
Created by Karlos on 6/18/2024 in #questions
Best headless CMS for t3-stack?
keystatic
8 replies
TTCTheo's Typesafe Cult
Created by terlan8892 on 6/14/2024 in #questions
why is page growing despite children wrapper div having overflow rules? TAILWIND
or set the value in px
7 replies
TTCTheo's Typesafe Cult
Created by terlan8892 on 6/14/2024 in #questions
why is page growing despite children wrapper div having overflow rules? TAILWIND
instead of h-1/2 use something like h-[50vh]
7 replies
TTCTheo's Typesafe Cult
Created by DugeHick on 6/18/2024 in #questions
Has anyone tried using prisma just for migrations, and using drizzle for querying on Postgres DB?
People did this with kysely before drizzle got popular. You can maybe try it, there are tools to convert prisma schema to types for keysely
5 replies