Commit d10e393
committed
BackNavigationHandler: Get
We've been getting this value from the navigation state in Redux,
via react-redux, but
- We want to stop using the nav state in Redux, for #3804.
- `NavigationService` can give it to us, and it should be ready (the
ref it uses should have been set) by the time we use it.
- The value has only been used in an event handler; we haven't been
taking advantage of the fact (thanks to react-redux) that
`BackNavigationHandler`'s `render` and `componentDidUpdate`
methods have been getting called whenever it changes.canGoBack from NavigationService.1 parent ff872f6 commit d10e393
File tree
1 file changed
+5
-6
lines changed1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 40 | + | |
0 commit comments