Skip to content
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

add config to control logging of effect errors even when handled #198

Conversation

jamesjtong
Copy link
Contributor

@jamesjtong jamesjtong commented Oct 6, 2018

Add a config option to install.

Currently the only option is DONT_LOG_ERRORS_ON_HANDLED_FAILURES (see #194, which fixed the issue where error messages were being swallowed in effects when the client added a failActionHandler on a Cmd) which is set to false by default. This means that by default, redux-loop will log errors in your effects even if you pass in a failActionCreator to a command (passing in a failActionCreator does not swallow errors like how catch is used for Promises).

@bdwain
Copy link
Member

bdwain commented Oct 18, 2018

Sorry for the delay. This looks good. Thanks!

2 things:
Can the option be flipped and be false by default? DONT_LOG_ERRORS_ON_HANDLED_FAILURES? I think options that are false by default are more natural.

Also, can you add some documentation for this option? Probably just something quick in the install page. https://redux-loop.js.org/docs/api-docs/install.html (the docs are in this repo).

Thanks!

…lures

DONT_LOG_ERRORS_ON_HANDLED_FAILURES by default is set to false
@bdwain
Copy link
Member

bdwain commented Dec 3, 2018

Sorry for the delay! Thanks for fixing this!

@bdwain bdwain merged commit 7ed5bb2 into redux-loop:master Dec 3, 2018
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.

None yet

2 participants