Route: Error on validateSearch doesn't call errorComponent if the user types the invalid query parameters to URL and refreshes browser #2149
jannekanerva
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following route definition (still a dummy version of my project):
The errorComponent is being rendered if I navigate via Link links (although those cause a compile error if the query string on them is incorrect). But when I type the invalid query string the the browser's address bar and load the page, the onError is being called but the errorComponent isn't being rendered.
Is this intended or am I misunderstanding how to use it correctly?
Beta Was this translation helpful? Give feedback.
All reactions