gitdagray / next-js-course

441 stars 217 forks source link

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

Open 16leog opened 1 year ago

16leog commented 1 year ago

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)

dhavalmj007 commented 1 year ago

Thank you, kind gentleman

SibingWu commented 1 year ago

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

matinmolkara commented 9 months ago

if(!user?.name)

thank you