-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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 hint about possibility to use babel plugin to improve reported st… #1726
base: main
Are you sure you want to change the base?
Conversation
crashedEffectLocation ? ` \n when executing effect ${crashedEffectLocation}` : '' | ||
}` | ||
|
||
if (process.env.NODE_ENV !== 'production' && !firstSaga.meta.location) { |
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.
@restrry u know that logic better, is this condition a good one for this check? Can it yield false positives?
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.
unfortunately it doesn't work as expected. for errors raised in helpers we don't have location
, as effect is hidden
in library code. for example, one of such cases:
yield retry(3, 10, function() {
undefinedIsNotAFunction()
})
as an alternative solution we can use
sagaStack.some(s => s.meta.location)
which is a bit better, but still could lead to false positives.
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.
hm, shouldnt "lastSaga" have location
nearly in all cases then? 🤔
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.
I suppose so
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.
@Andarist do you want me to finish work on this branch?
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.
That would definitely help, I'll try to dig into the babel location stuff in the meantime
80f4c4f
to
b97d5f5
Compare
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.
Maybe we should make changes...
These changes are already included in #1797 . |
No description provided.