UNPKG

887 BSource Map (JSON)View Raw
1{"version":3,"file":"components-using-slices.js","names":["componentsUsingSlicesReducer","state","Map","action","type","payload"],"sources":["../../../src/redux/reducers/components-using-slices.ts"],"sourcesContent":["import { ActionsUnion, IGatsbyState } from \"../types\"\n\nexport const componentsUsingSlicesReducer = (\n state: IGatsbyState[\"componentsUsingSlices\"] = new Map(),\n action: ActionsUnion\n): IGatsbyState[\"componentsUsingSlices\"] => {\n switch (action.type) {\n case `DELETE_CACHE`:\n return new Map()\n case `SET_COMPONENTS_USING_PAGE_SLICES`:\n return action.payload\n }\n\n return state\n}\n"],"mappings":";;;;AAEO,MAAMA,4BAA4B,GAAG,CAC1CC,KAA4C,GAAG,IAAIC,GAAG,EAAE,EACxDC,MAAoB,KACsB;EAC1C,QAAQA,MAAM,CAACC,IAAI;IACjB,KAAM,cAAa;MACjB,OAAO,IAAIF,GAAG,EAAE;IAClB,KAAM,kCAAiC;MACrC,OAAOC,MAAM,CAACE,OAAO;EAAA;EAGzB,OAAOJ,KAAK;AACd,CAAC;AAAA"}
\No newline at end of file