SIGN IN SIGN UP

Fixing known keying problems

This fixes the last known parts of the flattening experiment. This has grown to
be somewhat complex and potentially fragile because of it. We may end up
reverting flattening in the future or address it slightly differently.

The purpose of this diff is to test if we've finally understood the real world
edge cases that flattening can lead to and how we have to key components to
cover those cases.

With this commit we never rekey the internal _key property. The semantics is
that once a component passes through a composite component, it's identity is
frozen.

props.key should accept numeric values and booleans which includes 0 and false.
This fixes the truthiness check.

We should never warn about missing key properties if a component is passed as a
static child. The _key acts as a flag to determine whether this component
was checked already.
C
CommitSyncScript committed
6a41ede2d426cea1cb29103305362383f4d10f4d
Parent: c04081b
Committed by Paul O’Shannessy <paul@oshannessy.com> on 6/17/2013, 7:50:29 PM