Repository navigation
Replies: 5 comments
|
If you create the callback in-line, then it will not test |
0 replies
|
Note that if you re-create the same anon fn twice, not only will it be not |
0 replies
|
I've created a live demo of @UrKr's difficulty: https://gist.github.com/pesterhazy/36b56d1bd8b424abef81adbb5a392d93 (scroll down for the link) |
0 replies
|
Yep, covered here: @UrKr are we good to close? |
0 replies
|
@mike-thompson-day8 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
All reactions