Skip to content

Commit fa08399

Browse files
committed
upd
1 parent b3dfea5 commit fa08399

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/whackds.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ x: Fn(...),
189189
x: Fn(...) -> T,
190190
```
191191

192-
yields a `Rc<dyn Fn(...) + 'static>` field. During memoization, equality always returns `true` to avoid re-rendering the component.
192+
yields a `Rc<dyn Fn(...) + 'static>` field.
193+
194+
During memoization, equality always returns `true` to avoid re-rendering the component. It is assumed that these functions are always never changing.
193195

194196
### Function (optional)
195197

@@ -198,7 +200,9 @@ x: Option<Fn(...)>,
198200
x: Option<Fn(...) -> T>,
199201
```
200202

201-
yields an `Option<Rc<dyn Fn(...) + 'static>>` field. During memoization, equality always returns `true` to avoid re-rendering the component.
203+
yields an `Option<Rc<dyn Fn(...) + 'static>>` field.
204+
205+
During memoization, the equality comparison of the function objects always returns `true` to avoid re-rendering the component. It is assumed that these functions are always never changing.
202206

203207
### Implicit
204208

0 commit comments

Comments
 (0)