https://github.com/facebook/react/pull/1319