register as a function, vs. called without arguments #1684
|
I've noticed that in the nested fields example, If I remove the
Just wanted to understand this |
Replies: 1 comment 11 replies
|
This problem haunting us for a long time. Going
|

This problem haunting us for a long time. Going
register()is our last option on the table.Refgets invoked after input finished mount, and invoked again when it gets removed. However, during.mapReact reconcile kicks in and optimize when to remove/append a real Node, so when input shuffle and swap we want the correct input to getre-registeragain.register()will force that to call as it's a new anonymouscallback.