-
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
[Hold] Getting console error when opening public room #21634
Comments
Triggered auto assignment to @flaviadefaria ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.When a user mention ( What is the root cause of that problem?
However, What changes do you think we should make in order to solve the problem?A simple, local fix is to forward the reference in const TextLink = forwardRef((props, ref) => {
const rest = _.omit(props, _.keys(propTypes));
const additionalStyles = _.isArray(props.style) ? props.style : [props.style];
// ...
return (
<Text
ref={ref}
// ...
>
{props.children}
</Text>
);
}); What alternative solutions did you explore?I tried figuring out how |
I think this is dupe #21496 |
@gadhiyamanan I think the error is same but its happening at different places. |
The root cause is same |
@gadhiyamanan @allroundexperts will this be resolved by the changes in #21496? |
I think so, yes. We can keep this on hold if that works. |
Ok so I'll put this on hold until #21496 closes and switch it to weekly. |
Still on hold |
Alright #21496 has now closed do we want to check if the error is still happening? |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Action Performed:
Expected Result:
No console error occurs
Actual Result:
A console error occurs stating:
Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.32-5
Reproducible in staging?: y
Reproducible in production?: y
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
Notes/Photos/Videos: Any additional supporting documentation
Recording.5178.mp4
Expensify/Expensify Issue URL:
Issue reported by: @allroundexperts
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687379866272869
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: