-
Notifications
You must be signed in to change notification settings - Fork 22
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
#4489 Report tab slice errors properly #4623
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4623 +/- ##
==========================================
+ Coverage 50.90% 51.39% +0.48%
==========================================
Files 915 915
Lines 26985 27122 +137
Branches 5515 5515
==========================================
+ Hits 13736 13938 +202
+ Misses 12313 12250 -63
+ Partials 936 934 -2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
No loom links were found in the first post. Please add one there if you'd like to it to appear on Slack. Do not edit this comment manually. |
I'm not familiar with how slices work. How likely is it that two "nested slices" get the same error and report it twice? |
Redux slices created with redux toolkit aren't nested within each other, is that what you're talking about? |
Basically we had issues in the past with "reportError and re-throw", which meant that the error was caught again downstream and reported again. Can that happen here? I see that each slice has to "return an error" ( |
@@ -133,6 +134,7 @@ export const tabStateSlice = createSlice({ | |||
"PixieBrix was updated or restarted. Reload the Page Editor to continue." | |||
); | |||
state.error = serializeError(error); | |||
reportError(error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be dropped, context invalidation errors are not reported.
What does this PR do?
EditorContent
Demo
https://www.loom.com/share/2e5948b1265444c19f6affe01c05b0ce
Checklist