MCPcopy Create free account
hub / github.com/Wscats/chrome-devtools-cli / counter

Function counter

src/core/store/index.ts:2–24  ·  view source on GitHub ↗
(
    state = {
        rangeSelections: [],
        skill: ['ps', 'ts']
    },
    action
)

Source from the content-addressed store, hash-verified

1import { createStore } from 'redux';
2const counter = (
3 state = {
4 rangeSelections: [],
5 skill: ['ps', 'ts']
6 },
7 action
8) => {
9 switch (action.type) {
10 case 'SET_RANGE_SELECTIONS':
11 return {
12 ...state,
13 rangeSelections: action.rangeSelections
14 };
15 case 'SET_FD_AND_ROUTE_ID':
16 return {
17 ...state,
18 fd: action.fd,
19 routeId: action.routeId
20 };
21 default:
22 return state;
23 }
24};
25let store = createStore(counter);
26export default store;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected