-
Notifications
You must be signed in to change notification settings - Fork 71
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
Throw 404 error from the client side #138
Comments
It should be possible to import Where are you throwing the error from? |
I have a multi language app so in my router I have:
Now when someone tries the access this route with locale de there is no route so it should throw a 404.
The NotFoundBoundary is already in my I just need it to be triggered so it shows the 404 page. |
Hmm... I would have thought this would triggered the 404 page already. Is the component with the NotFoundBoundary rendered in the root view? |
The NotFoundBoundary is in my App component and in routes.js I have:
|
Okay. And just to check, the Is there any chance you could get a minimal reproduction on working on CodeSandbox or similar? |
This is inside app render:
|
I fixed it:
Needed to be:
|
Hi,
Is it possible to throw a 404 error from the client side?
I was trying something like this:
But the NotFoundBoundary does not come up.
The text was updated successfully, but these errors were encountered: