-
-
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
Conversation
…heck / removed comment from rnerror handler / removed comment from span / fix test from userInteraction
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.
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.
Sorry, probably a misunderstanding, fixed here 517161c
@krystofwoldrich I had to split the mocked and real tests from the wrap due to internal conflicts with the internal libraries when interacting with both on the same file (I can't properly remove the mocks otherwise it breaks the React Native testing hooks). |
Co-authored-by: Krystof Woldrich <[email protected]>
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.
Thank you for all the updates and fixing these props. Looks good.
📢 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.