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 2680fb2 commit e20019bCopy full SHA for e20019b
README.md
@@ -100,6 +100,10 @@ class App extends React.Component {
100
}
101
```
102
103
+By default `<Broadcast value>` values are compared using the `===` (strict equality) operator. To
104
+change this behavior, use `<Broadcast compareValues>` which is a function that takes the `prevValue`
105
+and `nextValue` and compares them. If `compareValues` returns `true`, no re-render will occur.
106
+
107
You may prefer to wrap these components into channel-specific pairs to avoid typos and other
108
problems with the indirection involved with the channel strings:
109
0 commit comments