Closed cballevre closed 7 months ago
Total files change -2B 0%
Final result: :white_check_mark:
View report in BundleMon website ➡️
@Ldoppea Yes, the problem was that the component didn't render after the bankingSlug
list reference change in the function (code). The problem is that the component is memoised for performance reasons. Its parent is re-rendered each time it is modified in the cozy-client redux store as a side effect. Using a context gets around this problem.
I've chosen not to rework the PersonalInfoDialog
component because it isn't memoised and it's part of a feature that hasn't been released for a long time: transfers.
isBankTrigger
didn't have thebankingSlug
when it was run with the HOC. As the function withbankingSlug
is also exposed via a context, so I chose this way. There's also the advantage of having one less request because you don't have to execute the hook several times.