1 | {"version":3,"sources":["../../src/utilities/validateNextState.js"],"names":["nextState","reducerName","action","undefined","Error","type"],"mappings":";;;;;;kBAAe,UAACA,SAAD,EAAYC,WAAZ,EAAiCC,MAAjC,EAA0D;AACvE;AACA,MAAIF,cAAcG,SAAlB,EAA6B;AAC3B,UAAM,IAAIC,KAAJ,CAAU,cAAcH,WAAd,GAA4B,sCAA5B,GAAqEC,OAAOG,IAA5E,GAAmF,+EAA7F,CAAN;AACD;AACF,C","file":"validateNextState.js","sourcesContent":["export default (nextState, reducerName: string, action: Object): void => {\n // eslint-disable-next-line no-undefined\n if (nextState === undefined) {\n throw new Error('Reducer \"' + reducerName + '\" returned undefined when handling \"' + action.type + '\" action. To ignore an action, you must explicitly return the previous state.');\n }\n};\n"]} |
---|