- Notifications
You must be signed in to change notification settings - Fork928
Should we unpack error messages in XState or components?#1961
-
This is a small question but I thought I'd use it as a chance to find out how GitHub discussions work. Maybe they'll work better than issues for decision-making? I want to unpack error messages from errors in XServices instead of in components, because a) I don't think components should have to know what our API returns and b) I don't want to keep So currently our XServices have a lot of stuff like: Sometimes, it first checks if the error is an So I'm proposing: This would result in eventually changing a lot of our error handling code, but I think itneeds an audit anyway. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments 6 replies
-
👍 I like to have this unpacked in the machines instead of the components |
BetaWas this translation helpful?Give feedback.
All reactions
-
@presleyp test mention Unpacking in XState sounds ideal to me. |
BetaWas this translation helpful?Give feedback.
All reactions
-
This sounds ideal to me as well! |
BetaWas this translation helpful?Give feedback.
All reactions
-
@presleyp does the ping send to our Slack integration? This is a (second) test. |
BetaWas this translation helpful?Give feedback.
All reactions
-
I wonder if someone replies if I'll see it in Slack as well :O |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
@vapurrmaid It doesn't ping Slack. I do get push notifications on my phone though, because I have the GitHub app. |
BetaWas this translation helpful?Give feedback.
All reactions
-
@presleyp ,@bpmct has been working more in Discussions as well. 👍 |
BetaWas this translation helpful?Give feedback.