Commit 6a047eb
committed
Refactor NavigationState
The `remember` block creating the `NavigationState` is now keyed with `startRoute` and `topLevelRoutes`. This ensures the state is correctly recalculated when these parameters change. Additionally, the `rememberSerializable` call for `topLevelRoute` includes these keys for better state consistency.1 parent 8015304 commit 6a047eb
File tree
1 file changed
+2
-1
lines changed1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
0 commit comments