Skip to content

Conversation

@notheotherben
Copy link
Contributor

Specifically, the documentation states the following:

If the payload is an instance of an Error object, redux-actions will automatically set action.error to true.

This implies that, irrespective of the arguments provided to createAction, if the resulting payload is an Error object then the action.error property should be set to true.

This just changes that check to ensure it is performed as stated in the docs.

@timche
Copy link
Member

timche commented Apr 23, 2016

Could you please do a rebase/merge the latest master commits in your branch to fix this PR? Would like to see Travis passing first before (maybe) merging this.

Specifically, the documentation states the following:

> If the payload is an instance of an Error object, redux-actions will automatically set action.error to true.

This implies that, irrespective of the arguments provided to `createAction`, if the resulting `payload` is an Error object then the `action.error` property should be set to true.

This just changes that check to ensure it is performed as stated in the docs.
@notheotherben
Copy link
Contributor Author

There you go, let me know if there's anything else I can help with.

@timche timche merged commit 79c6863 into redux-utilities:master Apr 23, 2016
@timche
Copy link
Member

timche commented Apr 23, 2016

Looks good to me. I've merged it, thanks :)

@notheotherben
Copy link
Contributor Author

Thanks, appreciate it 👍

@kujon
Copy link

kujon commented May 16, 2016

Any estimate on when is it going to get published?

@timche
Copy link
Member

timche commented May 16, 2016

I'm waiting for some other stuff to get merged, then I'll reach out to @acdlite to publish a new version.

It will take another week or two, depends on how responsive the PR authors are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants