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

[DTRA] / Kate / DTRA-566 / Console error while switching between DTrader and TraderHub #12156

Conversation

kate-deriv
Copy link
Contributor

@kate-deriv kate-deriv commented Dec 11, 2023

Changes:

  • Refactored clearTimout and added test case.
  • Added isMounted() check in async code
    Update: after merging latest master, I discovered, that someone has already applied same fixed and the only file which was left is tests

Screenshots:

Please provide some screenshots of the change.

Copy link

vercel bot commented Dec 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
deriv-app ✅ Ready (Inspect) Visit Preview Dec 13, 2023 7:23am

Copy link
Contributor

github-actions bot commented Dec 11, 2023

A production App ID was automatically generated for this PR. (log)

Click here to copy & paste above information.
- **PR**: [https://github.com/binary-com/deriv-app/pull/12156](https://github.com/binary-com/deriv-app/pull/12156)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-kate-deriv-kate-dtra-566consoleerroru-1882f9.binary.sx?qa_server=red.derivws.com&app_id=31586
    - **Original**: https://deriv-app-git-fork-kate-deriv-kate-dtra-566consoleerroru-1882f9.binary.sx
- **App ID**: `31586`

@coveralls
Copy link

coveralls commented Dec 11, 2023

Coverage Status

coverage: 31.444% (+0.08%) from 31.363%
when pulling 7581459 on kate-deriv:kate/DTRA-566/console_error_unmount_state
into e8c96fa on binary-com:master.

Copy link
Contributor

github-actions bot commented Dec 11, 2023

🚨 Lighthouse report for the changes in this PR:

Category Score
🔺 Performance 15
🟧 Accessibility 76
🟢 Best practices 92
🟢 SEO 92
🟧 PWA 80

Lighthouse ran with https://deriv-app-git-fork-kate-deriv-kate-dtra-566consoleerroru-1882f9.binary.sx/

maryia-deriv
maryia-deriv previously approved these changes Dec 12, 2023

it('should clear timeout after component was unmount', () => {
jest.useFakeTimers();
jest.spyOn(global, 'clearTimeout');
Copy link
Contributor

Choose a reason for hiding this comment

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

👍🏻

maryia-deriv
maryia-deriv previously approved these changes Dec 12, 2023
Copy link

sonarcloud bot commented Dec 13, 2023

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

❌ Smoke test run (2) failed. See logs for details: Visit Action

Copy link
Contributor

❌ Smoke test run (2) failed. See logs for details: Visit Action

Copy link
Contributor

❌ Smoke test run (1) failed. See logs for details: Visit Action

Copy link
Contributor

❌ Smoke test run (1) failed. See logs for details: Visit Action

Copy link
Contributor

❌ Smoke test run (2) failed. See logs for details: Visit Action

@balakrishna-deriv balakrishna-deriv merged commit 22a8d91 into binary-com:master Dec 14, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants