E.g. if you got an object with reducer functions mediaReducer = {mediaFun1: () => {}, mediaFun2: () => {}} and want to add all the functions in the object to an existing key data in the structure of the reducers: {data: {pagesFun1: () => {}, pagesFun2: () => {}}} to get {data: {pagesFun1: () => {}, pagesFun2: () => {}, mediaFun1:() => {}, mediaFun2:() => {}}} by doing: injectReducer('data', mediaReducer);
E.g. if you got an object with reducer functions
mediaReducer = {mediaFun1: () => {}, mediaFun2: () => {}}
and want to add all the functions in the object to an existing keydata
in the structure of the reducers:{data: {pagesFun1: () => {}, pagesFun2: () => {}}}
to get{data: {pagesFun1: () => {}, pagesFun2: () => {}, mediaFun1:() => {}, mediaFun2:() => {}}}
by doing:injectReducer('data', mediaReducer);