Skip to content

Commit f638d09

Browse files
committed
snapshot
1 parent 19737bc commit f638d09

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

package/lib/src/beam_stack.dart

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -462,15 +462,6 @@ class RoutesBeamStack extends BeamStack<BeamState> {
462462
/// A wrapper used as [BeamStack.builder].
463463
final Widget Function(BuildContext context, Widget navigator)? navBuilder;
464464

465-
/// They are regenerated on [buildPages],
466-
/// so they are only valid for one build cycle.
467-
///
468-
/// The reason for not making them persistent across build cycles is that
469-
/// we can't know the [BeamPage.key] before creating them (see [buildPages]).
470-
// final Map<LocalKey, BeamPageNotifier> _pageNotifiers = {};
471-
// final List<BeamPageNotifier> _pageNotifiers = [];
472-
// final Map<ValueKey, BeamPageNotifier> _pageNotifiers = {};
473-
474465
@override
475466
Widget builder(BuildContext context, Widget navigator) {
476467
return navBuilder?.call(context, navigator) ?? navigator;

package/lib/src/beamer_delegate.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ class BeamerDelegate extends RouterDelegate<RouteInformation>
5050
updateListenable?.addListener(_update);
5151
}
5252

53+
/// They are regenerated on [buildPages],
54+
/// so they are only valid for one build cycle.
55+
///
56+
/// The reason for not making them persistent across build cycles is that
57+
/// we can't know the [BeamPage.key] before creating them (see [buildPages]).
5358
final Map<LocalKey, BeamPageStateNotifier> pageNotifiers = {};
5459

5560
bool _firstBuild = true;

0 commit comments

Comments
 (0)