Batch subupdates caused by any state update

Counterpart to facebook/react#1363.