We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c66f992 commit 4297fd6Copy full SHA for 4297fd6
exercises/06.rerenders/02.problem.comparator/README.mdx
@@ -24,7 +24,7 @@ const Avatar = memo(
24
prevProps.user.avatarUrl === nextProps.user.avatarUrl
25
const nameUnchanged = prevProps.user.name === nextProps.user.name
26
// return true if we don't want to re-render
27
- return avatarUnchanged || nameUnchanged
+ return avatarUnchanged && nameUnchanged
28
},
29
)
30
```
0 commit comments