Page MenuHomePhabricator

[Cashtab] Do not clearTimeout when alias component unmounts
ClosedPublic

Authored by bytesofman on Jan 31 2024, 00:53.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABCd83d64269649: [Cashtab] Do not clearTimeout when alias component unmounts
Summary

Since this is a timeout, and not an interval, we are only clearing one possible extra call.

In testing, this clearance is not working. So, stop trying to do this.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bytesofman added inline comments.
cashtab/src/components/Alias/Alias.js
177 ↗(On Diff #44759)

if you console.log(timeout clearing`, timeout)` here, then run this and leave the component -- you will not see the log

This revision is now accepted and ready to land.Jan 31 2024, 06:56