Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
16leog opened this issue Jun 28, 2023 · 3 comments
Open

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

16leog opened this issue Jun 28, 2023 · 3 comments

Comments

@16leog
Copy link

16leog commented Jun 28, 2023

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
Copy link

Thank you, kind gentleman

@SibingWu
Copy link

SibingWu commented Aug 16, 2023

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

@matinmolkara
Copy link

if(!user?.name)

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants