Commit ed0cf62
committed
Yet another large refactoring (hooray!)
[added] Navigation mixin for components that need to modify the URL
[added] CurrentPath mixin for components that need to know the current URL path
[added] getActiveRoutes, getActiveParams, and getActiveQuery methods to ActiveState mixin
[removed] Awkward updateActiveState callback from ActiveState mixin
[removed] Router.PathState (use Router.CurrentPath instead)
[removed] Router.Transitions (use Router.Navigation instead)
[removed] Router.RouteLookup (because it was useless)
[added] <Routes scrollBehavior="browser"> as an alternative to scrollBehavior="imitateBrowser"
[changed] <Routes fixedPath> => <Routes initialPath>. Currently only used in testing, but will be useful for SSR
[added] <Routes onTransition> but starting to think the <Routes on*> hooks should be private1 parent 931daf4 commit ed0cf62
34 files changed
Lines changed: 1146 additions & 1110 deletions
File tree
- modules
- actions
- behaviors
- components
- __tests__
- locations
- mixins
- __tests__
- stores
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 52 | | |
71 | 53 | | |
72 | | - | |
| 54 | + | |
73 | 55 | | |
74 | 56 | | |
75 | | - | |
| 57 | + | |
76 | 58 | | |
77 | 59 | | |
78 | 60 | | |
79 | 61 | | |
80 | | - | |
| 62 | + | |
81 | 63 | | |
82 | 64 | | |
83 | 65 | | |
| |||
100 | 82 | | |
101 | 83 | | |
102 | 84 | | |
103 | | - | |
| 85 | + | |
104 | 86 | | |
105 | 87 | | |
106 | 88 | | |
| |||
0 commit comments