UNPKG

@netlify/content-engine

Version:
17 lines 535 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.nodesTouchedReducer = void 0; const nodesTouchedReducer = (state = new Set(), action) => { switch (action.type) { case `CREATE_NODE`: state.add(action.payload.id); return state; case `TOUCH_NODE`: state.add(action.payload); return state; default: return state; } }; exports.nodesTouchedReducer = nodesTouchedReducer; //# sourceMappingURL=nodes-touched.js.map