Skip to content

Commit

Permalink
Merge pull request #865 from jfperondini/master
Browse files Browse the repository at this point in the history
fix: update innermodules
  • Loading branch information
jacobaraujo7 authored Aug 1, 2023
2 parents 2251b70 + c3ececc commit d24a4a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modular_core/lib/src/tracker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@ class _Tracker implements Tracker {
for (var child in routes) {
child = child.addParent(route);
child = child.copyWith(
innerModules: {module.runtimeType: module},
innerModules: {
...child.innerModules,
module.runtimeType: module,
},
parent: route.parent,
);
map.addAll(_assembleRoute(child));
Expand Down

0 comments on commit d24a4a3

Please sign in to comment.