-
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
Migrate index.js to function component #16161
Comments
I'd like to work on this issue |
I'd love to work on this. |
I can work on this issue. |
1 similar comment
I can work on this issue. |
Can I work on this issue? |
I'd like to work on this. |
Hello, I would like to work on this issue. |
Hi, I am Kacper from Callstack and I’d like to work on this issue :) |
📣 @kacper-mikolajczak! 📣
|
Job added to Upwork: https://www.upwork.com/jobs/~019c6ea0a458401e24 |
Triggered auto assignment to @peterdbarkerUK ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ArekChr ( |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Migrate src/components/Hoverable/index.js into a functional component. What is the root cause of that problem?new feature What changes do you think we should make in order to solve the problem?We need to migrate index.js into a functional component. We can do this by using the following hooks:
|
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.86-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-10-25. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
@kacper-mikolajczak I'm seeing this in production when I resize to mobile view from the console, could it be related to this PR? |
I can confirm that reverting the PR locally fixes it for me Screen.Recording.2023-10-19.at.19.14.51.mov |
Hi @youssef-lr, it looks like the error is caused by the I will look into it, thanks for the feedback! |
Nobody has caught this in staging nor prod yet, so I guess it's not easy to reproduce? Weirdly, when I resize the window manually the error doesn't seem to happen. But pressing CMD+Option+J to reveal dev tools which is already set to mobile view triggers it. So I'm not totally sure about how critical it is..we can wait and find out if it's occurring for more users. |
Yeah, it stopped crashing "in the app" but still happens with scenario you brought up - interesting 🤔 My first thoughts are:
Hopefully it will be resolved sooner than later 🤞 |
@cubuspl42 you might be interested in this 👀 🕵️ |
If there's any problem with I'm actually surprised nothing turned up for so long, at least nothing I'm aware of. |
Known limitations are listed here |
Thank you for the feedback! I will try to double check what is causing the issue and if the root cause is indeed on the library side, I will create the issue and hopefully resolve it as well 🤞 |
@youssef-lr Here is the continuation of an issue described in #29844 (comment) |
@youssef-lr I've tried to investigate what is causing the app to crash when responsive view is triggered via devtools. I could not really find a proper reason - it looks like it only happens when we open the devtools for the first time:
It seems that some refs are not being properly attached, or at least not in time for I tried to prepare reproducible sample with For today I have no further ideas how to solve the issue. Sorry! I will try to find a way soon! |
Thank you so much for digging into this @kacper-mikolajczak, appreciate it! |
@youssef-lr Here is a solution that should solve the issue here as well: #30278 (comment) PR is under review 👍 |
Deployed to staging |
With this now on prod, @youssef-lr can you confirm this is working as expected (and if so, close out the issue)? |
Working great @peterdbarkerUK! |
Woohoo ! That means we can finally close this out? :D |
Yup! |
Class Component Migration
Filenames
React.Component
componentDidMount
,componentWillUnmount
Task
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: