-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is CreateLogic.Config.Transform.Hook uses optional argument for reject? #150
Comments
The reason that |
If I've got this correct, redux-logic/src/createLogic.js Lines 175 to 177 in 4b0951a
In this case, I think it would be better if you either
if (reject) {
reject(action);
} because there is actually no case where
redux-logic/definitions/logic.d.ts Lines 201 to 212 in 4b0951a
|
When compiling with tsc and
--strict
switched on, I found error increateLogic
callback. Specifically, tsc indicatesreject
parameter intransform
function can be undefined. I checked the type definition:redux-logic/definitions/logic.d.ts
Lines 216 to 240 in 4b0951a
It used
reject?: Pass<Action, Context>
fortransform
function signature. I wonder, is there any case wheretransform
can be called withreject
neglected? I've checked #124 and #125, but still couldn't figure out why there is?
followingreject
parameter.The text was updated successfully, but these errors were encountered: