fix: remove duplicate swap fee fetch on startup#3920
fix: remove duplicate swap fee fetch on startup#3920a-khushal wants to merge 3 commits intoZeusLN:masterfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request removes the call to SwapStore.getSwapFees() within the Wallet component's connection logic, specifically when node information is being fetched. There are no review comments to evaluate, and I have no feedback to provide.
There was a problem hiding this comment.
@a-khushal, I think we should add { fireImmediately: true } to the getHost → getSwapFees reaction so the first fee load still runs when getHost doesn’t change after connect.
9275eb8 to
2bc656d
Compare
|
There is a regression in My commit myxmaster@a0f742a (cherry-pick if you want) fixes this by:
|
971a9e1 to
3443681
Compare
I cherry-picked your fix ( |
|
Ah, we should also handle the empty initial state of and Otherwise the swap icon is shortly displayed before fees are loaded. Besides that: |
0e15ccf to
fd2bd2d
Compare
(cherry picked from commit a0f742a)
fd2bd2d to
18aaa09
Compare
Description
Relates to issue: ZEUS-3911
This pull request is categorized as a:
Checklist
yarn run tscand made sure my code compiles correctlyyarn run lintand made sure my code didn’t contain any problematic patternsyarn run prettierand made sure my code is formatted correctlyyarn run testand made sure all of the tests passTesting
If you modified or added a utility file, did you add new unit tests?
I have tested this PR on the following platforms (please specify OS version and phone model/VM):
I have tested this PR with the following types of nodes (please specify node version and API version where appropriate):
On-device
Remote
Locales
Third Party Dependencies and Packages
yarnafter this PR is merged inpackage.jsonandyarn.lockhave been properly updatedOther: