Skip to content
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

Fix timerow should update on Language changes. #4360

Merged
merged 2 commits into from
Aug 2, 2021

Conversation

parasharrajat
Copy link
Member

@parasharrajat parasharrajat commented Aug 2, 2021

Details

Removed usages of ShouldComponentUpdate and used PureComponent. On change the Language the Callback passed as props from the WithLocalize HOC will not cause a render due to the current ShouldComponentUpdate only check for state changes. but this is a perfect example of using the Pure Component.

📓
There is another regression where WithLocalize is not causing the render of components which will be taken care of in separate PR. Only after, withLocalize is fixed, changes of this PR will fix the Original issue.

Fixed Issues

$ #4352

Tests | QA Steps

  1. Change language from the Preference page.
  2. see that TimeRow changes to a different language.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

Mobile Web

Desktop

iOS

Android

@parasharrajat parasharrajat requested a review from a team as a code owner August 2, 2021 10:01
@MelvinBot MelvinBot requested review from MariaHCD and removed request for a team August 2, 2021 10:02
componentWillUnmount() {
clearInterval(this.timer);
clearInterval(this.readyTimer);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra. Don't see any readytimer.

@parasharrajat
Copy link
Member Author

Requesting review @nkuoch.

@nkuoch nkuoch merged commit d6aba3d into Expensify:main Aug 2, 2021
@OSBotify
Copy link
Contributor

OSBotify commented Aug 2, 2021

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify
Copy link
Contributor

OSBotify commented Aug 6, 2021

🚀 Deployed to staging in version: 1.0.82-8🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

🚀 Deployed to production by @francoisl in version: 1.0.83-1 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 failure ❌
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@parasharrajat parasharrajat deleted the fixTime branch November 20, 2023 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants