PageSourceSearch

https://app.order.co/assets/split_cart/cart_component/reducer-94c5…89dc94ad6edc69b3b419f723a396865702cb4d1c.js

js order.co collected 2026-10-02 03:45:51 UTC 678 bytes, 25 lines download raw bytes

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.