Replies: 5 comments
-
If you create the callback in-line, then it will not test |
Beta Was this translation helpful? Give feedback.
-
Note that if you re-create the same anon fn twice, not only will it be not
|
Beta Was this translation helpful? Give feedback.
-
I've created a live demo of @UrKr's difficulty: https://gist.github.com/pesterhazy/36b56d1bd8b424abef81adbb5a392d93 (scroll down for the link) |
Beta Was this translation helpful? Give feedback.
-
Yep, covered here: @UrKr are we good to close? |
Beta Was this translation helpful? Give feedback.
-
@mike-thompson-day8 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Since reagent using identical? to see if it has to rerender a component, does the fact that recom components take callbacks as arguments mean that this optimization can never work, even if all the other props are identical?
If this is true, I suppose a solution is to pass in globally defined functions. That is a bit inconvenient however, because you can't close over local variables.
Beta Was this translation helpful? Give feedback.
All reactions