-
-
Notifications
You must be signed in to change notification settings - Fork 344
Fix: V7 - JavaScript V9 - set undefined for updateProd when not set #4740
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
base: v7
Are you sure you want to change the base?
Conversation
…heck / removed comment from rnerror handler / removed comment from span / fix test from userInteraction
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.
The code changes and the tests LGMT and aligned with the previous discussion #4568 (comment) 🚀
There is already Since it's TSX, we can use the JSX syntax, which will make the test more readable. |
Let's fix this at once. Looking at the JS implementation, we should pass the |
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 noticed a few things that should be addressed before merging.
…xtra comment / remove unused __esModule parameter. CODE: moved Options definition from wrap function into ReactNativeWrapperOptions / added flag to remove updateProps since we cannot avoid it on ReactNativeProfiler
I can't change As a way to avoid a big change, I added a flag to remove this parameter when it is included by our wrap function. |
packages/core/src/js/sdk.tsx
Outdated
updateProps: {} | ||
updateProps: options?.profilerProps |
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 thought we would keep the updateProps: {}
? I think just removing the updateProps from the wrap
type and here ensuring they will always be {}
is enough. I would not delete them in the ReactNativeProfiler
class.
📢 Type of change
📜 Description
updateProps
always set but with undefined value, avoiding break changes and making the compiler happy.updateProps
andchildren
from wrap options.💡 Motivation and Context
Fixes: #4728
💚 How did you test it?
Unit test, Sample app
📝 Checklist
sendDefaultPII
is enabled🔮 Next steps
#skip-changelog.