-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$250] [Dev] Console Warning: ERROR Warning: A props object containing a “key” prop is being spread into JSX: #49064
Comments
Triggered auto assignment to @puneetlath ( |
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989 |
Edited by proposal-police: This proposal was edited at 2024-09-12 23:05:24 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Console Warning: A props object containing a “key” prop is being spread into JSX What is the root cause of that problem?This happens in the App/src/components/Form/InputWrapper.tsx Line 82 in 5a2602c
App/src/components/Form/FormProvider.tsx Line 298 in d9618ca
What changes do you think we should make in order to solve the problem?Separate the const {key, ...restProps} = registerInput();
return <InputComponent key={key} {...restProps} />; Additionally, we might need to double check every places where we use spread operator for component props to ensure they do not spread |
Job added to Upwork: https://www.upwork.com/jobs/~021836067438259125444 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani ( |
@gijoe0295 Is this issue going to be resolved in this PR #49222? |
@jayeshmangwani No, this should be handled separately. |
I agree with @gijoe0295 's Proposal. We should check every spread operator used in the other components too and ensure that the key is passed separately from spread 🎀 👀 🎀 C+ reviewed |
Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @gijoe0295 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@puneetlath PR reach production on Sep 25. Should be ready for payment on Oct 2. |
@puneetlath Ready for payment. |
Sorry for the delay! Payment summary:
Thanks everyone! |
$250 approved for @jayeshmangwani |
@garrettmknight @puneetlath Hi I haven't received payments for this yet. My Upwork profile is https://www.upwork.com/freelancers/~0187ef68b8203dabee. |
@puneetlath did you pay @gijoe0295 somewhere else? |
Oh hm, weird. The upwork job shows up as unpaid: https://www.upwork.com/nx/wm/workroom/38445346/overview. It must've been during the time when Upwork was having the payment bug because the contract shows as completed. In any case, I've added the payment as a bonus, so you should have it now @gijoe0295. Sorry about that! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.30-9
Reproducible in staging?: Needs reproduction
Reproducible in production?: Needs reproduction
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @c3024
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1726072795900059?thread_ts=1726072125.690969&cid=C049HHMV9SM
Action Performed:
Expected Result:
No console warning on the workspace merchant page.
Actual Result:
Console Warning
ERROR Warning: A props object containing a “key” prop is being spread into JSX:
let props = {key: someKey, ref: ..., valueType: ..., name: ..., defaultValue: ..., maxLength: ..., label: ..., accessibilityLabel: ..., role: ..., shouldSetTouchedOnBlurOnly: ..., blurOnSubmit: ..., onSubmitEditing: ..., returnKeyType: ..., inputID: ..., errorText: ..., value: ..., onTouched: ..., onPress: ..., onPressOut: ..., onBlur: ..., onInputChange: ...};
<ForwardRef(TextInput) {...props} />
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @puneetlathThe text was updated successfully, but these errors were encountered: