1export const actionTypes = { 2 INPUT: "INPUT", 3 REQUEST_START: "REQUEST_START", 4 REQUEST_FINISHED: "REQUEST_FINISHED" 5}; 6 7export const reducer = (state = {}, action) => { 8 switch (action.type) { 9 case actionTypes.INPUT: 10 return { ...state, willUpdate: true }; 11 case actionTypes.REQUEST_START: 12 return { 13 ...state, 14 inFlightRequests: state.inFlightRequests + 1, 15 willUpdate: true 16 }; 17 case actionTypes.REQUEST_FINISHED: { 18 const inFlightRequests = state.inFlightRequests - 1; 19 const willUpdate = inFlightRequests > 0; 20 return { ...state, inFlightRequests, willUpdate }; 21 } 22 default: 23 return state; 24 } 25};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.