Builder.io
OSS
@builder.io/sdks
perf(Blocks,Block): add deep comparison to block/blocks memo call React.memo uses a shallow comparison, which isn't enough in this case. Using [welldone-software/why-did-you-render](https://github.com/welldone-software/why-did-you-render) I found our homepage content would update 12 times in one load with the wdyr message "different objects that are equal by value". This change adds a deep comparison, which when tested via patch-package, eliminated those re-renders.
nx test @e2e/react-native-74
Sign in / Sign up
Open main menu
Failed
CI Pipeline Execution
2 runs failed
nx test @e2e/react-native-74
Click to copy
Linux
4 CPU cores
read
access token used
d89d1b8b
4253