* Sets the focused route of the navigation state by index.
(state, index)
| 76 | * Sets the focused route of the navigation state by index. |
| 77 | */ |
| 78 | jumpToIndex(state, index) { |
| 79 | if (index === state.index) { |
| 80 | return state; |
| 81 | } |
| 82 | |
| 83 | invariant(!!state.routes[index], 'invalid index %s to jump to', index); |
| 84 | |
| 85 | return { |
| 86 | ...state, |
| 87 | index, |
| 88 | }; |
| 89 | }, |
| 90 | |
| 91 | /** |
| 92 | * Sets the focused route of the navigation state by key. |
nothing calls this directly
no test coverage detected
searching dependent graphs…