1 | "use strict";
|
2 |
|
3 | exports.__esModule = true;
|
4 | exports.staticQueryComponentsReducer = void 0;
|
5 | const 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 | };
|
17 | exports.staticQueryComponentsReducer = staticQueryComponentsReducer;
|
18 |
|
\ | No newline at end of file |