cogdancer
cogdancer
TTCTheo's Typesafe Cult
Created by fero.xd on 5/3/2024 in #questions
Weird react behaviour
You're randomly generating a new key prop for every node on every re-render on line 92. I don't know for sure whether that's causing the issues you're seeing, but it seems like it might, and you should probably fix it either way.
6 replies
TTCTheo's Typesafe Cult
Created by kgni on 1/22/2024 in #questions
create-t3-turbo issues
I had a similar error due to weird permissions on expo/.gitignore, so I just fixed the permissions: chmod 644 ./apps/expo/.gitignore. That resolved the problem.
17 replies
TTCTheo's Typesafe Cult
Created by Zion on 8/1/2023 in #questions
submitting form results in page reload/url change t3+react-hook-form+shadcn
I'll defer to barry since I've only used react-hook-form a little, but just to close the loop: I think you're using the wrong Event type in your onSubmit function definition. If you want to follow this up, I would track down the Event type that's expected by react-hook-form and make sure I'm importing that and not something else.
58 replies
TTCTheo's Typesafe Cult
Created by Zion on 8/1/2023 in #questions
submitting form results in page reload/url change t3+react-hook-form+shadcn
So it does expect an optional event param, but the type defs don't match? What happens if you type e as any, just to try it?
58 replies
TTCTheo's Typesafe Cult
Created by Zion on 8/1/2023 in #questions
submitting form results in page reload/url change t3+react-hook-form+shadcn
What happens if you add an event parameter e to your onSubmit function, then call e.preventDefault() as the first line of the function? Function signature for onSubmit can be found here: https://react-hook-form.com/docs/useform/handlesubmit
58 replies
TTCTheo's Typesafe Cult
Created by max14 on 7/21/2023 in #questions
Resend Email
Took me a second to find it as well. Lots of examples, but the actual API docs aren't obvious 😅
6 replies
TTCTheo's Typesafe Cult
Created by max14 on 7/21/2023 in #questions
Resend Email
You could also send from [email protected], but apparently it's considered best practice to send transactional emails from an address that accepts incoming mail, even if you mostly don't read it
6 replies
TTCTheo's Typesafe Cult
Created by max14 on 7/21/2023 in #questions
Resend Email
I would send from [email protected] with a reply_to param of their address. It looks like Resend supports this. https://resend.com/docs/api-reference/emails/send-email This represents the actual situation clearly: your server is sending this email, not their email provider, but replies should be addressed to their email address.
6 replies