-
Notifications
You must be signed in to change notification settings - Fork 14
feat(ng): evm tx fee widget #406
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
Conversation
useEffect(() => { | ||
let isMounted = true; | ||
|
||
getNetworkFee(network.caipId).then((newFee) => { | ||
if (isMounted) { | ||
setNetworkFee(newFee); | ||
} | ||
}); | ||
|
||
return () => { | ||
isMounted = false; | ||
}; | ||
}, [getNetworkFee, network]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed all isMounted
flags from apps/next
, since the warning is not present anymore in React 18 and actually cancelling the promises would be a bigbig lift 🙌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🦤
fcc8c5e
Description
Adds the network fee widget for EVM transaction approval screens.
Testing
Custom
button and modify as you like)Screenshots:
EVM.Network.Fee.Widget.mov
Checklist for the author