-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Errors in reducer function get swallowed #1094
Comments
+1 on this and this happens in the app as well. Currently I have to write the same code in updateQueries first to find what the errors are, after making sure there are no more errors, then move the code to the reducer function. |
+1 for this too. I've been running around in circles for about an hour and it turns out a reducer error was thrown and stored in the store, but it was never logged to the console. The reducer error was thrown because I wasn't explicitly setting optional arguments to null. I'll be opening an issue for this specifically if it doesn't exist. |
@calebmer I can confirm that an error is logged if you don't define all of the variables. |
+1 for reducer errors getting swallowed. In my case, I was returning an object from my reducer which was missing a field which was present in the underlying query / fragment it was intended to update. |
This might be fixed now. If it's still an issue, please open a new issue! |
Tried to write a test for query variables yesterday, and errors thrown in the reducer function didn't show up anywhere. This may only be happening in the tests, but we should fix it anyway.
The text was updated successfully, but these errors were encountered: