-
Notifications
You must be signed in to change notification settings - Fork 330
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
Reflux actions throw an error in the console when they fail #403
Labels
Comments
liady
changed the title
Reflux actions throws an error in the console when they fail
Reflux actions throw an error in the console when they fail
Aug 23, 2015
👍 I would like to see this resolved as well. If a developer wants to log an error, he can do so with an |
+1 |
Is there any plan which release will have this bug fixing? |
Since reflux-core (and by extension reflux) has had it's promise extensions extracted to reflux-promise. I've moved the issue there: reflux/reflux-promise#4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lately I started getting
Uncaught (in promise) some-error
errors in my console whenever an action failed.I researched a bit and found out that Reflux creates a promise every time an action is triggered, and if the action fails, the promise rejects and there is no one to catch it. I boiled it down to:
Fiddle here
Seems like every action trigger creates a promise, and that causes this issue when the action fails. I would imagine this would happen only when calling
action.triggerPromise
explicitly, and not every time.Currently I have to attach a
catch
clause to every action trigger in my code to fix this problem. I want my components to just call the actions, not handle their outcome. Is there a way to avoid it? Am I missing something here?The text was updated successfully, but these errors were encountered: