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 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
This problem haunting us for a long time. Going
|
Beta Was this translation helpful? Give feedback.
This problem haunting us for a long time. Going
register()
is our last option on the table.Ref
gets invoked after input finished mount, and invoked again when it gets removed. However, during.map
React 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-register
again.register()
will force that to call as it's a new anonymouscallback
.