We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e31a5c1 commit 847a917Copy full SHA for 847a917
packages/react-router/lib/router/router.ts
@@ -3039,10 +3039,10 @@ export function createRouter(init: RouterInit): Router {
3039
if (!isMutationMethod(request.method)) {
3040
for (let match of matches) {
3041
if (
3042
- match.shouldCallHandler() &&
3043
!results.hasOwnProperty(match.route.id) &&
3044
!state.loaderData.hasOwnProperty(match.route.id) &&
3045
- (!state.errors || !state.errors.hasOwnProperty(match.route.id))
+ (!state.errors || !state.errors.hasOwnProperty(match.route.id)) &&
+ match.shouldCallHandler()
3046
) {
3047
results[match.route.id] = {
3048
type: ResultType.error,
0 commit comments