Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chaance committed Jan 11, 2023
1 parent 759dda6 commit af52559
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/remix-react/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,9 @@ function V2Meta() {
})
: routeModule.meta;
} else if (leafMeta) {
// We only assign the route's meta to the nearest leaf if there is no meta
// export in the route. The meta function may return a falsey value which
// is effectively the same as an empty array.
routeMeta = leafMeta;
}

Expand Down

0 comments on commit af52559

Please sign in to comment.