diff --git a/src/state.js b/src/state.js index b0e3ec5..cb6552d 100644 --- a/src/state.js +++ b/src/state.js @@ -52,13 +52,11 @@ export default function (...args) { // Create the actionCreator const actionCreator = (payload, ext = {}) => { - const meta = {...ext} - delete meta.type - delete meta.payload + const getMeta = ({ type, payload, ...meta }) => meta return { type: resolvedActionName, payload, - ...meta + getMeta(ext) } }