-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Angular and reactNative data callback should return updated data. #891
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
Conversation
091671c
to
949d1b8
Compare
@benvinegar I don't think this stops adding any of the proposed changes from #803 but it fixes a real problem that exists now. |
70c0ef0
to
19fe83d
Compare
@benvinegar ping ^ |
The API is really bloated and I'd prefer not to add Can this be done without that? |
@benvinegar I did add those, and it's not that much extra code, in exchange I re-factored the duplicate setXCallback APIs the setXCallback APIs should be deprecated. |
Unfortunately, we have a goal with this project which is to change the APIs as infrequently as possible. And if we're going to do it, it better really be worth it. In this case, I'm not ready to change these APIs until we commit to moving towards the middleware style advocated in #803. It's also not clear to me what problem this PR is solving, because there are no tests or example failure cases. |
@benvinegar the issue is, setDataCallback supports two ways of changing the data sent:
however the angular and react-native clobber method 1 of the original functions by not returning the data through the stack of functions. |
@benvinegar happy to rename |
Okay, after a long conversation on IRC, I think this closes up some holes in the callback system. Can you maybe add a cursory set of utils tests for |
489c77a
to
3797401
Compare
@benvinegar any update on this? |
@HazAT – just verifying, but this shouldn't conflict with getsentry/react-native-sentry, correct? (It has its own Raven.js plugin.) @graingert – thanks and sorry for the slowness. |
@benvinegar hey no worries I'm just glad for the existence of the project! |
@benvinegar @HazAT yeah it looks like that should be updated too |
It won't break it but now it will behave slightly different. |
No description provided.