Allow empty string ('') as promiseTypeDelimiter
k3flo opened this issue · comments
k3flo 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