You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/whackds.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -189,7 +189,9 @@ x: Fn(...),
189
189
x:Fn(...) ->T,
190
190
```
191
191
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.
193
195
194
196
### Function (optional)
195
197
@@ -198,7 +200,9 @@ x: Option<Fn(...)>,
198
200
x:Option<Fn(...) ->T>,
199
201
```
200
202
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.
0 commit comments