Bro's knoweledge of react : 9.5 Bro's knoweledge of basic windows: 1 Lol unless you code in mac or linux I dont understand how is it that you look like my grandma trying to use the computer when moving stuff around the screen
You are already using "pending" state from useFormState so you really don't have to create another state called "loading" just to control the text based on form submit status. Replace the code on login-form.tsx 81 with {pending ? "Logging in..." : "Login"} instead of {loading ? ...}
apiVersion: '2024-06-20', it looks like stripe has set their current type definition so that an improper API version throws a type error that actually shows the current API version freakin clever stripe I like it.
I really hope this video covers the things I need to know, because the stripe documentation is a nightmare, makes little sense in the grand scheme and i don't want to find this stuff in there.
Love from Pakistan. Good to see you again :) Can you make a tut on generating pdfs on node js or NEXT 14 apis? cz after deploying on vercel most of the libraries break till some extent. If you could make a thorough tut on making dynamic template pdfs on next 14 or node *(INCLUDING VERCEL DEPLOYMENT*) it would be great. Again great work brother :)
I don't think you have to put hashedPassword field in your Prisma Schema. Use password: hasedPassword when you create a user. The error you got because you didn't npx prisma db push after you npx prisma generate. Mine works perfectly fine.
i used mysql to follow along and this was very awesome thanks i have been using ejs and htmx so react is a bit different to get going but i enjoy usestate so much
Great tutorial! I'm all set for when a checkout is complete for a subscription, but struggling a bit with the invoice.paid event when the subscription auto renews. Do you know if there will be a session.subscription property in the same way that it's there for checkout.session.complete event? I'm using the current_period_end timestamp to set the expiration date on checkout complete, want to do the same thing when invoice.paid fires. Any help would be appreciated 🙏
No, it does not make the component re-render on every keystroke. Shadcn-ui uses react-hook-form under the hood. I will link the react-hook-form docs and if you scroll down a bit on the page, they have a demo on when the component would re-render. react-hook-form.com
so, TS keeps giving me the nasty error of type initiation is excessively deep and possibly infinite. ive been playing around for an hour and literally the basic boilerplate username form example , there it is. doesn't seem like anyone else has suffered this error for this instance but any ideas or suggestions are welcomed. I'm wondering if my TS version is out of wack or? aside from that, good vid. seems like a good workflow to form-ing, if only to settle this arggh. lol
Thanks for watching and if you can send me a picture of your dependencies in your package.json I might be able to help you out. It does seem like something is a different version that is causing your error.
Yes, you can use any database you want. But the MERN stack specifically uses MongoDB and if you don't use MongoDB then its not technically a MERN stack anymore. I have never used MySQL but I have heard its not as scalable compared to Postgres SQL or MongoDB. Still a good option for personal or small projects.
@@brettwestwooddeveloper Thank you very much for the response and information, greatly appreciated ☺️. This may be a silly question but what would it be called instead of MERN? Yes I want to start off with my first small project but the recommendation is to use MySQL. I will definitely look into learning and using MongoDB in the future.
I would watch this one first because it goes over everything. There is a new version of Next-Auth which is in beta. However, you can still use this video as a guide and is still relevant. I have other videos as well on my channel going over the session object and much more!
Hello Brett! You defined the onSubmit function as useCallback, but why? I think, we only need this if we add this function to the useEffect dependency array. Or am I wrong? And one more question. What "from" address I should use instead of "onboarding" on the host? Can I use something like no-reply @ mydomain or does it have to be a specific address?
wow, this tutorial video is an absolute gem! The clarity of instruction, the depth of knowledge shared, and the engaging presentation truly set it apart. Thank you for making complex concepts so accessible and for empowering learners like me to enhance our skills.