UNPKG

556 BJavaScriptView Raw
1"use strict";
2
3exports.__esModule = true;
4exports.staticQueryComponentsReducer = void 0;
5const staticQueryComponentsReducer = (state = new Map(), action) => {
6 switch (action.type) {
7 case `DELETE_CACHE`:
8 return new Map();
9 case `REPLACE_STATIC_QUERY`:
10 return state.set(action.payload.id, action.payload);
11 case `REMOVE_STATIC_QUERY`:
12 state.delete(action.payload);
13 return state;
14 }
15 return state;
16};
17exports.staticQueryComponentsReducer = staticQueryComponentsReducer;
18//# sourceMappingURL=static-query-components.js.map
\No newline at end of file