SIGN IN SIGN UP

Require giving a GlobalKey to UniqueComponent

Having UniqueComponent automatically generate its own key is a trap. If
anyone ever creates a UniqueComponent in a build function (rather than
ahead of time) and forgets to pass a key, then that entire subtree is
going to be rebuilt, including layout, every time it's updated. Since
there's basically no way for us to catch this, we should at least force
the author to see the explicit "new GlobalKey()" call in their code.
H
Hixie committed
5487b95472e9a1c03d02d57c146895f046dc8793
Parent: 64dfb84