redux-duck
redux-duck copied to clipboard
Helper function to create Redux modules using the ducks-modular-redux proposal
``` myActionCreator(false); ``` will return: ``` { type: 'MY_ACTION' } ``` without payload, cause it doesn't pass current check against undefined. FIX: https://github.com/PlatziDev/redux-duck/pull/3
Payload is empty string? Oops...
there could be some simple payloads like `0`, `''` or `false`, that will be skipped in current implementation. for that reason need to check against `undefined`.