-
Notifications
You must be signed in to change notification settings - Fork 106
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
feat(Bonus Pagamenti Digitali): [#176240699,#175891337,#176166370] Convert BPD activation status to pot, prevent cashback logo flickering on Android #2639
Conversation
Affected stories
|
Codecov Report
@@ Coverage Diff @@
## master #2639 +/- ##
==========================================
- Coverage 51.09% 51.08% -0.02%
==========================================
Files 721 721
Lines 20537 20540 +3
Branches 3950 3632 -318
==========================================
- Hits 10493 10492 -1
- Misses 10000 10004 +4
Partials 44 44
Continue to review full report at Codecov.
|
@@ -330,7 +325,7 @@ class WalletHomeScreen extends React.PureComponent<Props, State> { | |||
if ( | |||
this.props.allActiveBonus.length === 0 || | |||
this.props.allActiveBonus.every(ab => isStrictSome(ab)) || | |||
isReady(this.props.bpdActiveBonus) | |||
pot.isLoading(this.props.bpdActiveBonus) |
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.
Why in this case you didn't use pot.isSome
?
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.
I think it is a typo done during porting 😄 wrong for sure! Changed in f297755
Short description
This pr converts bpd activation status from
RemoteValue
topot
and memoize theBpdCardsInWalletContainer
component, in order to avoid useless rendering and prevent the cashback logo flickering on Android.List of changes proposed in this pull request
bonus/bpd/details/activation/enabled
fromRemoteValue
topot
BpdCardsInWalletContainer
in order to avoid re-rendering with the same valuesBpdCardsInWalletContainer
, from30 seconds
to `5 minutes