-
Notifications
You must be signed in to change notification settings - Fork 2
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
Manage Page Not Found through hoc #3
Comments
I think we have only one not found page. export const { reducer, enhancer, middleware } = routerForBrowser({
routes: {
'/': { title: 'HOME',
'/500': { title: '500' },
'/404': { title: '404' },
},
},
basename,
}) And forRoute('HOME', { 404: 'CUSTOM_404', 500: 'CUSTOM_500' })(App) to extends default usage ? |
We speak about this solution with @bpetetot .
With your solution @guillaumecrespel, we only have one 404 page in the whole application since title are uniq. |
This issue is more about the "Route Not Found" and not the "404 not found" (the HTTP error due to a network request not found) When a user types a route that doesn't exist, I want to display an error page and eventually different page, when the route is not found at different levels of the graph (as @fabienjuif said in the previous post) |
Yes you are write about the definition :) |
see #41 |
Display a "page not found" component when router can't match any
title
prop in routing configuration tree :Example :
The text was updated successfully, but these errors were encountered: