(discard: boolean)
| 153 | preview: false, conflict: undefined, reviewing: false, error: '', notice: '' })); |
| 154 | }; |
| 155 | const useLatest = (discard: boolean): void => setState(value => value.conflict ? ({ ...value, |
| 156 | base: value.conflict, content: discard ? value.conflict.content : value.content, |
| 157 | editing: !discard, conflict: undefined, reviewing: false, phase: 'ready', error: '', notice: discard ? '' : s.rebased }) : value); |
| 158 | const ready = state.phase === 'ready'; |
| 159 | const documentVisible = !state.editing || state.preview; |
| 160 | /* |
no outgoing calls
no test coverage detected