Skip to content

Support meta field

Compare
Choose a tag to compare
@acdlite acdlite released this 13 Jul 21:59
· 189 commits to master since this release

Adds a third parameter to createAction() that creates a meta object. It receives the same arguments payload creator, but its result becomes the meta field of the resulting action.

createAction(TYPE, payloadCreator, metaCreator);

If metaCreator is undefined or not a function, the meta field is omitted.

Thanks @johanneslumpe for working on this