pburtchaell / redux-promise-middleware

Enables simple, yet robust handling of async action creators in Redux

Home Page:https://pburtchaell.gitbook.io/redux-promise-middleware/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow empty string ('') as promiseTypeDelimiter

k3flo opened this issue · comments

commented

I would appreciate it if it is possible to leave the promiseTypeDelimiter empty (empty string).
Currently the empty string is replaced with '_' even if I definded promiseTypeDelimiter: ''.

Version Number

5.0.0

Code Example

applyMiddleware(promiseMiddleware({ promiseTypeSuffixes: ['_PENDING', '', '_REJECTED'], promiseTypeDelimiter: '' }))

Expected Behavior

Promise Types are:

  • MyType_PENDING
  • MyType
  • MyType_REJECTED

Actual Behavior

Promise Types are:

  • MyType__PENDING
  • MyType_
  • MyType__REJECTED
commented

Sorry, just found the solution (#192) for it.
So you may close or implement it nevertheless.