next-js-course icon indicating copy to clipboard operation
next-js-course copied to clipboard

next04/app/users/[userId]/page.tsx

Open 16leog opened this issue 2 years ago • 3 comments

if you're doing this on the latest nextjs version, you'll probably run into a problem when using user to flag a notFound, in this case instead of if(!user.name) do if(!user?.name)

16leog avatar Jun 28 '23 15:06 16leog

Thank you, kind gentleman

dhavalmj007 avatar Aug 10 '23 04:08 dhavalmj007

Did you manage to have "User Not Found" tab title? Mine always shows "Create Next App" @16leog

SibingWu avatar Aug 16 '23 16:08 SibingWu

if(!user?.name)

thank you

matinmolkara avatar Feb 06 '24 17:02 matinmolkara