@samitouri / QOS-React-2 / commits / 2494a25ee9

Added unstable_batchedUpdates as breaking change to v16 post (#10954)

* Add breaking change ReactDOM.unstable_batchedUpdates now only takes one argument. * Reword * Update CHANGELOG.md

watadarkstar committed Sep 29, 2017 at 08:08 UTC 2494a25ee946654bbdd0f0a7e07280a3b3d742dd
2 files changed +3 -1
CHANGELOG.md
+1
@@ -37,6 +37,7 @@ No unreleased changes yet.
37 * Non-unique keys may now cause children to be duplicated and/or omitted. Using non-unique keys is not (and has never been) supported, but previously it was a hard error.
38 * Shallow renderer no longer calls `componentDidUpdate()` because DOM refs are not available. This also makes it consistent with `componentDidMount()` (which does not get called in previous versions either).
39 * Shallow renderer does not implement `unstable_batchedUpdates()` anymore.
40 + * `ReactDOM.unstable_batchedUpdates` now only takes one extra argument after the callback.
41 - The names and paths to the single-file browser builds have changed to emphasize the difference between development and production builds. For example:
42 - `react/dist/react.js` → `react/umd/react.development.js`
43 - `react/dist/react.min.js` → `react/umd/react.production.min.js`
docs/_posts/2017-09-26-react-v16.0.md
+2 -1
@@ -162,6 +162,7 @@ React 16 includes a number of small breaking changes. These only affect uncommon
162 * `componentDidUpdate` lifecycle no longer receives `prevContext` param. (See [#8631](https://github.com/facebook/react/issues/8631))
163 * Shallow renderer no longer calls `componentDidUpdate` because DOM refs are not available. This also makes it consistent with `componentDidMount` (which does not get called in previous versions either).
164 * Shallow renderer does not implement `unstable_batchedUpdates` anymore.
165 +* `ReactDOM.unstable_batchedUpdates` now only takes one extra argument after the callback.
166
167 ### Packaging
168
@@ -205,4 +206,4 @@ global.requestAnimationFrame = function(callback) {
206
207 As always, this release would not have been possible without our open source contributors. Thanks to everyone who filed bugs, opened PRs, responded to issues, wrote documentation, and more!
208
208 -Special thanks to our core contributors, especially for their heroic efforts over the past few weeks during the prerelease cycle: [Brandon Dail](https://twitter.com/aweary), [Jason Quense](https://twitter.com/monasticpanic), [Nathan Hunzaker](https://twitter.com/natehunzaker), and [Sasha Aickin](https://twitter.com/xander76).
\ No newline at end of file
209 +Special thanks to our core contributors, especially for their heroic efforts over the past few weeks during the prerelease cycle: [Brandon Dail](https://twitter.com/aweary), [Jason Quense](https://twitter.com/monasticpanic), [Nathan Hunzaker](https://twitter.com/natehunzaker), and [Sasha Aickin](https://twitter.com/xander76).