208.json (37075B)
1 { 2 "number": 208, 3 "title": "Bump react, react-dom and @types/react", 4 "state": "merged", 5 "diff_file": "208.diff", 6 "author": "dependabot[bot]", 7 "created_at": "2022-05-23T08:41:47Z", 8 "closed_at": "2022-05-23T11:29:13Z", 9 "merged_at": "2022-05-23T11:29:13Z", 10 "base_ref": "main", 11 "head_ref": "dependabot/npm_and_yarn/react-and-react-dom-and-types/react-18.1.0", 12 "labels": [ 13 "dependencies", 14 "javascript" 15 ], 16 "assignees": [ 17 "MTRNord" 18 ], 19 "requested_reviewers": [ 20 "MTRNord" 21 ], 22 "body": "Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react), [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) and [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react). These dependencies needed to be updated together.\nUpdates `react` from 17.0.2 to 18.1.0\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/facebook/react/releases\">react's releases</a>.</em></p>\n<blockquote>\n<h2>18.1.0 (April 26, 2022)</h2>\n<h3>React DOM</h3>\n<ul>\n<li>Fix the false positive warning about <code>react-dom/client</code> when using UMD bundle. (<a href=\"https://github.com/alireza-molaee\"><code>@\u200balireza-molaee</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24274\">#24274</a>)</li>\n<li>Fix <code>suppressHydrationWarning</code> to work in production too. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24271\">#24271</a>)</li>\n<li>Fix <code>componentWillUnmount</code> firing twice inside of Suspense. (<a href=\"https://github.com/acdlite\"><code>@\u200bacdlite</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24308\">#24308</a>)</li>\n<li>Fix some transition updates being ignored. (<a href=\"https://github.com/acdlite\"><code>@\u200bacdlite</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24353\">#24353</a>)</li>\n<li>Fix <code>useDeferredValue</code> causing an infinite loop when passed an unmemoized value. (<a href=\"https://github.com/acdlite\"><code>@\u200bacdlite</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24247\">#24247</a>)</li>\n<li>Fix throttling of revealing Suspense fallbacks. (<a href=\"https://github.com/sunderls\"><code>@\u200bsunderls</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24253\">#24253</a>)</li>\n<li>Fix an inconsistency in whether the props object is the same between renders. (<a href=\"https://github.com/Andarist\"><code>@\u200bAndarist</code></a> and <a href=\"https://github.com/acdlite\"><code>@\u200bacdlite</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24421\">#24421</a>)</li>\n<li>Fix a missing warning about a <code>setState</code> loop in <code>useEffect</code>. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24298\">#24298</a>)</li>\n<li>Fix a spurious hydration error. (<a href=\"https://github.com/gnoff\"><code>@\u200bgnoff</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24404\">#24404</a>)</li>\n<li>Warn when calling <code>setState</code> in <code>useInsertionEffect</code>. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24295\">#24295</a>)</li>\n<li>Ensure the reason for hydration errors is always displayed. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24276\">#24276</a>)</li>\n</ul>\n<h3>React DOM Server</h3>\n<ul>\n<li>Fix escaping for the <code>bootstrapScriptContent</code> contents. (<a href=\"https://github.com/gnoff\"><code>@\u200bgnoff</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24385\">#24385</a>)</li>\n<li>Significantly improve performance of <code>renderToPipeableStream</code>. (<a href=\"https://github.com/gnoff\"><code>@\u200bgnoff</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24291\">#24291</a>)</li>\n</ul>\n<h3>ESLint Plugin: React Hooks</h3>\n<ul>\n<li>Fix false positive errors with a large number of branches. (<a href=\"https://github.com/scyron6\"><code>@\u200bscyron6</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24287\">#24287</a>)</li>\n<li>Don't consider a known dependency stable when the variable is reassigned. (<a href=\"https://github.com/afzalsayed96\"><code>@\u200bafzalsayed96</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24343\">#24343</a>)</li>\n</ul>\n<h3>Use Subscription</h3>\n<ul>\n<li>Replace the implementation with the <code>use-sync-external-store</code> shim. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24289\">#24289</a>)</li>\n</ul>\n<h2>18.0.0 (March 29, 2022)</h2>\n<p>Below is a list of all new features, APIs, deprecations, and breaking changes.\nRead <a href=\"https://reactjs.org/blog/2022/03/29/react-v18.html\">React 18 release post</a> and <a href=\"https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html\">React 18 upgrade guide</a> for more information.</p>\n<h3>New Features</h3>\n<h3>React</h3>\n<ul>\n<li><code>useId</code> is a new hook for generating unique IDs on both the client and server, while avoiding hydration mismatches. It is primarily useful for component libraries integrating with accessibility APIs that require unique IDs. This solves an issue that already exists in React 17 and below, but it\u2019s even more important in React 18 because of how the new streaming server renderer delivers HTML out-of-order.</li>\n<li><code>startTransition</code> and <code>useTransition</code> let you mark some state updates as not urgent. Other state updates are considered urgent by default. React will allow urgent state updates (for example, updating a text input) to interrupt non-urgent state updates (for example, rendering a list of search results).</li>\n<li><code>useDeferredValue</code> lets you defer re-rendering a non-urgent part of the tree. It is similar to debouncing, but has a few advantages compared to it. There is no fixed time delay, so React will attempt the deferred render right after the first render is reflected on the screen. The deferred render is interruptible and doesn't block user input.</li>\n<li><code>useSyncExternalStore</code> is a new hook that allows external stores to support concurrent reads by forcing updates to the store to be synchronous. It removes the need for <code>useEffect</code> when implementing subscriptions to external data sources, and is recommended for any library that integrates with state external to React.</li>\n<li><code>useInsertionEffect</code> is a new hook that allows CSS-in-JS libraries to address performance issues of injecting styles in render. Unless you\u2019ve already built a CSS-in-JS library we don\u2019t expect you to ever use this. This hook will run after the DOM is mutated, but before layout effects read the new layout. This solves an issue that already exists in React 17 and below, but is even more important in React 18 because React yields to the browser during concurrent rendering, giving it a chance to recalculate layout.</li>\n</ul>\n<h3>React DOM Client</h3>\n<p>These new APIs are now exported from <code>react-dom/client</code>:</p>\n<ul>\n<li><code>createRoot</code>: New method to create a root to <code>render</code> or <code>unmount</code>. Use it instead of <code>ReactDOM.render</code>. New features in React 18 don't work without it.</li>\n</ul>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Changelog</summary>\n<p><em>Sourced from <a href=\"https://github.com/facebook/react/blob/main/CHANGELOG.md\">react's changelog</a>.</em></p>\n<blockquote>\n<h2>18.1.0 (April 26, 2022)</h2>\n<h3>React DOM</h3>\n<ul>\n<li>Fix the false positive warning about <code>react-dom/client</code> when using UMD bundle. (<a href=\"https://github.com/alireza-molaee\"><code>@\u200balireza-molaee</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24274\">#24274</a>)</li>\n<li>Fix <code>suppressHydrationWarning</code> to work in production too. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24271\">#24271</a>)</li>\n<li>Fix <code>componentWillUnmount</code> firing twice inside of Suspense. (<a href=\"https://github.com/acdlite\"><code>@\u200bacdlite</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24308\">#24308</a>)</li>\n<li>Fix some transition updates being ignored. (<a href=\"https://github.com/acdlite\"><code>@\u200bacdlite</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24353\">#24353</a>)</li>\n<li>Fix <code>useDeferredValue</code> causing an infinite loop when passed an unmemoized value. (<a href=\"https://github.com/acdlite\"><code>@\u200bacdlite</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24247\">#24247</a>)</li>\n<li>Fix throttling of revealing Suspense fallbacks. (<a href=\"https://github.com/sunderls\"><code>@\u200bsunderls</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24253\">#24253</a>)</li>\n<li>Fix an inconsistency in whether the props object is the same between renders. (<a href=\"https://github.com/Andarist\"><code>@\u200bAndarist</code></a> and <a href=\"https://github.com/acdlite\"><code>@\u200bacdlite</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24421\">#24421</a>)</li>\n<li>Fix a missing warning about a <code>setState</code> loop in <code>useEffect</code>. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24298\">#24298</a>)</li>\n<li>Fix a spurious hydration error. (<a href=\"https://github.com/gnoff\"><code>@\u200bgnoff</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24404\">#24404</a>)</li>\n<li>Warn when calling <code>setState</code> in <code>useInsertionEffect</code>. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24295\">#24295</a>)</li>\n<li>Ensure the reason for hydration errors is always displayed. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24276\">#24276</a>)</li>\n</ul>\n<h3>React DOM Server</h3>\n<ul>\n<li>Fix escaping for the <code>bootstrapScriptContent</code> contents. (<a href=\"https://github.com/gnoff\"><code>@\u200bgnoff</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24385\">#24385</a>)</li>\n<li>Significantly improve performance of <code>renderToPipeableStream</code>. (<a href=\"https://github.com/gnoff\"><code>@\u200bgnoff</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24291\">#24291</a>)</li>\n</ul>\n<h3>ESLint Plugin: React Hooks</h3>\n<ul>\n<li>Fix false positive errors with a large number of branches. (<a href=\"https://github.com/scyron6\"><code>@\u200bscyron6</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24287\">#24287</a>)</li>\n<li>Don't consider a known dependency stable when the variable is reassigned. (<a href=\"https://github.com/afzalsayed96\"><code>@\u200bafzalsayed96</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24343\">#24343</a>)</li>\n</ul>\n<h3>Use Subscription</h3>\n<ul>\n<li>Replace the implementation with the <code>use-sync-external-store</code> shim. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24289\">#24289</a>)</li>\n</ul>\n<h2>18.0.0 (March 29, 2022)</h2>\n<p>Below is a list of all new features, APIs, deprecations, and breaking changes.\nRead <a href=\"https://reactjs.org/blog/2022/03/29/react-v18.html\">React 18 release post</a> and <a href=\"https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html\">React 18 upgrade guide</a> for more information.</p>\n<h3>New Features</h3>\n<h3>React</h3>\n<ul>\n<li><code>useId</code> is a new hook for generating unique IDs on both the client and server, while avoiding hydration mismatches. It is primarily useful for component libraries integrating with accessibility APIs that require unique IDs. This solves an issue that already exists in React 17 and below, but it\u2019s even more important in React 18 because of how the new streaming server renderer delivers HTML out-of-order.</li>\n<li><code>startTransition</code> and <code>useTransition</code> let you mark some state updates as not urgent. Other state updates are considered urgent by default. React will allow urgent state updates (for example, updating a text input) to interrupt non-urgent state updates (for example, rendering a list of search results).</li>\n<li><code>useDeferredValue</code> lets you defer re-rendering a non-urgent part of the tree. It is similar to debouncing, but has a few advantages compared to it. There is no fixed time delay, so React will attempt the deferred render right after the first render is reflected on the screen. The deferred render is interruptible and doesn't block user input.</li>\n<li><code>useSyncExternalStore</code> is a new hook that allows external stores to support concurrent reads by forcing updates to the store to be synchronous. It removes the need for <code>useEffect</code> when implementing subscriptions to external data sources, and is recommended for any library that integrates with state external to React.</li>\n<li><code>useInsertionEffect</code> is a new hook that allows CSS-in-JS libraries to address performance issues of injecting styles in render. Unless you\u2019ve already built a CSS-in-JS library we don\u2019t expect you to ever use this. This hook will run after the DOM is mutated, but before layout effects read the new layout. This solves an issue that already exists in React 17 and below, but is even more important in React 18 because React yields to the browser during concurrent rendering, giving it a chance to recalculate layout.</li>\n</ul>\n<h3>React DOM Client</h3>\n<p>These new APIs are now exported from <code>react-dom/client</code>:</p>\n<ul>\n<li><code>createRoot</code>: New method to create a root to <code>render</code> or <code>unmount</code>. Use it instead of <code>ReactDOM.render</code>. New features in React 18 don't work without it.</li>\n</ul>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/facebook/react/commit/22edb9f777d27369fd2c1fad378f74e237b6dfd3\"><code>22edb9f</code></a> React <code>version</code> field should match package.json (<a href=\"https://github.com/facebook/react/tree/HEAD/packages/react/issues/24445\">#24445</a>)</li>\n<li><a href=\"https://github.com/facebook/react/commit/4175f05934d3954827c00b7633c1ce8e4e87d227\"><code>4175f05</code></a> Temporarily feature flag numeric fallback for symbols (<a href=\"https://github.com/facebook/react/tree/HEAD/packages/react/issues/24401\">#24401</a>)</li>\n<li><a href=\"https://github.com/facebook/react/commit/e8f4a6653dc3f5d9702236a3abed887ca44dcfbb\"><code>e8f4a66</code></a> Fix import in example</li>\n<li><a href=\"https://github.com/facebook/react/commit/bb49abea2377d6391a98cef536e9da4c26ddaa39\"><code>bb49abe</code></a> Update some READMEs (<a href=\"https://github.com/facebook/react/tree/HEAD/packages/react/issues/24290\">#24290</a>)</li>\n<li><a href=\"https://github.com/facebook/react/commit/7e3121e1cfe25f1af5079b3bf487b5b5202400d4\"><code>7e3121e</code></a> Remove unstable_createMutableSource from experimental build (<a href=\"https://github.com/facebook/react/tree/HEAD/packages/react/issues/24209\">#24209</a>)</li>\n<li><a href=\"https://github.com/facebook/react/commit/34aa5cfe0d9b6ec4667e02bf46ab34d83dfb2d6d\"><code>34aa5cf</code></a> Update local package.jsons for 18</li>\n<li><a href=\"https://github.com/facebook/react/commit/72a933d2892dac9e5327678b6bd37af8d589bb22\"><code>72a933d</code></a> Gate legacy hidden (<a href=\"https://github.com/facebook/react/tree/HEAD/packages/react/issues/24047\">#24047</a>)</li>\n<li><a href=\"https://github.com/facebook/react/commit/d5f1b067c8bbb826b823d0354a28ba31078b70c0\"><code>d5f1b06</code></a> [ServerContext] Flight support for ServerContext (<a href=\"https://github.com/facebook/react/tree/HEAD/packages/react/issues/23244\">#23244</a>)</li>\n<li><a href=\"https://github.com/facebook/react/commit/17806594cc28284fe195f918e8d77de3516848ec\"><code>1780659</code></a> Move createRoot/hydrateRoot to react-dom/client (<a href=\"https://github.com/facebook/react/tree/HEAD/packages/react/issues/23385\">#23385</a>)</li>\n<li><a href=\"https://github.com/facebook/react/commit/42f15b324f50d0fd98322c21646ac3013e30344a\"><code>42f15b3</code></a> [DevTools][Transition Tracing] onTransitionComplete and onTransitionStart imp...</li>\n<li>Additional commits viewable in <a href=\"https://github.com/facebook/react/commits/v18.1.0/packages/react\">compare view</a></li>\n</ul>\n</details>\n<br />\n\nUpdates `react-dom` from 17.0.2 to 18.1.0\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/facebook/react/releases\">react-dom's releases</a>.</em></p>\n<blockquote>\n<h2>18.1.0 (April 26, 2022)</h2>\n<h3>React DOM</h3>\n<ul>\n<li>Fix the false positive warning about <code>react-dom/client</code> when using UMD bundle. (<a href=\"https://github.com/alireza-molaee\"><code>@\u200balireza-molaee</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24274\">#24274</a>)</li>\n<li>Fix <code>suppressHydrationWarning</code> to work in production too. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24271\">#24271</a>)</li>\n<li>Fix <code>componentWillUnmount</code> firing twice inside of Suspense. (<a href=\"https://github.com/acdlite\"><code>@\u200bacdlite</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24308\">#24308</a>)</li>\n<li>Fix some transition updates being ignored. (<a href=\"https://github.com/acdlite\"><code>@\u200bacdlite</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24353\">#24353</a>)</li>\n<li>Fix <code>useDeferredValue</code> causing an infinite loop when passed an unmemoized value. (<a href=\"https://github.com/acdlite\"><code>@\u200bacdlite</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24247\">#24247</a>)</li>\n<li>Fix throttling of revealing Suspense fallbacks. (<a href=\"https://github.com/sunderls\"><code>@\u200bsunderls</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24253\">#24253</a>)</li>\n<li>Fix an inconsistency in whether the props object is the same between renders. (<a href=\"https://github.com/Andarist\"><code>@\u200bAndarist</code></a> and <a href=\"https://github.com/acdlite\"><code>@\u200bacdlite</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24421\">#24421</a>)</li>\n<li>Fix a missing warning about a <code>setState</code> loop in <code>useEffect</code>. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24298\">#24298</a>)</li>\n<li>Fix a spurious hydration error. (<a href=\"https://github.com/gnoff\"><code>@\u200bgnoff</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24404\">#24404</a>)</li>\n<li>Warn when calling <code>setState</code> in <code>useInsertionEffect</code>. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24295\">#24295</a>)</li>\n<li>Ensure the reason for hydration errors is always displayed. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24276\">#24276</a>)</li>\n</ul>\n<h3>React DOM Server</h3>\n<ul>\n<li>Fix escaping for the <code>bootstrapScriptContent</code> contents. (<a href=\"https://github.com/gnoff\"><code>@\u200bgnoff</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24385\">#24385</a>)</li>\n<li>Significantly improve performance of <code>renderToPipeableStream</code>. (<a href=\"https://github.com/gnoff\"><code>@\u200bgnoff</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24291\">#24291</a>)</li>\n</ul>\n<h3>ESLint Plugin: React Hooks</h3>\n<ul>\n<li>Fix false positive errors with a large number of branches. (<a href=\"https://github.com/scyron6\"><code>@\u200bscyron6</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24287\">#24287</a>)</li>\n<li>Don't consider a known dependency stable when the variable is reassigned. (<a href=\"https://github.com/afzalsayed96\"><code>@\u200bafzalsayed96</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24343\">#24343</a>)</li>\n</ul>\n<h3>Use Subscription</h3>\n<ul>\n<li>Replace the implementation with the <code>use-sync-external-store</code> shim. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24289\">#24289</a>)</li>\n</ul>\n<h2>18.0.0 (March 29, 2022)</h2>\n<p>Below is a list of all new features, APIs, deprecations, and breaking changes.\nRead <a href=\"https://reactjs.org/blog/2022/03/29/react-v18.html\">React 18 release post</a> and <a href=\"https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html\">React 18 upgrade guide</a> for more information.</p>\n<h3>New Features</h3>\n<h3>React</h3>\n<ul>\n<li><code>useId</code> is a new hook for generating unique IDs on both the client and server, while avoiding hydration mismatches. It is primarily useful for component libraries integrating with accessibility APIs that require unique IDs. This solves an issue that already exists in React 17 and below, but it\u2019s even more important in React 18 because of how the new streaming server renderer delivers HTML out-of-order.</li>\n<li><code>startTransition</code> and <code>useTransition</code> let you mark some state updates as not urgent. Other state updates are considered urgent by default. React will allow urgent state updates (for example, updating a text input) to interrupt non-urgent state updates (for example, rendering a list of search results).</li>\n<li><code>useDeferredValue</code> lets you defer re-rendering a non-urgent part of the tree. It is similar to debouncing, but has a few advantages compared to it. There is no fixed time delay, so React will attempt the deferred render right after the first render is reflected on the screen. The deferred render is interruptible and doesn't block user input.</li>\n<li><code>useSyncExternalStore</code> is a new hook that allows external stores to support concurrent reads by forcing updates to the store to be synchronous. It removes the need for <code>useEffect</code> when implementing subscriptions to external data sources, and is recommended for any library that integrates with state external to React.</li>\n<li><code>useInsertionEffect</code> is a new hook that allows CSS-in-JS libraries to address performance issues of injecting styles in render. Unless you\u2019ve already built a CSS-in-JS library we don\u2019t expect you to ever use this. This hook will run after the DOM is mutated, but before layout effects read the new layout. This solves an issue that already exists in React 17 and below, but is even more important in React 18 because React yields to the browser during concurrent rendering, giving it a chance to recalculate layout.</li>\n</ul>\n<h3>React DOM Client</h3>\n<p>These new APIs are now exported from <code>react-dom/client</code>:</p>\n<ul>\n<li><code>createRoot</code>: New method to create a root to <code>render</code> or <code>unmount</code>. Use it instead of <code>ReactDOM.render</code>. New features in React 18 don't work without it.</li>\n</ul>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Changelog</summary>\n<p><em>Sourced from <a href=\"https://github.com/facebook/react/blob/main/CHANGELOG.md\">react-dom's changelog</a>.</em></p>\n<blockquote>\n<h2>18.1.0 (April 26, 2022)</h2>\n<h3>React DOM</h3>\n<ul>\n<li>Fix the false positive warning about <code>react-dom/client</code> when using UMD bundle. (<a href=\"https://github.com/alireza-molaee\"><code>@\u200balireza-molaee</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24274\">#24274</a>)</li>\n<li>Fix <code>suppressHydrationWarning</code> to work in production too. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24271\">#24271</a>)</li>\n<li>Fix <code>componentWillUnmount</code> firing twice inside of Suspense. (<a href=\"https://github.com/acdlite\"><code>@\u200bacdlite</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24308\">#24308</a>)</li>\n<li>Fix some transition updates being ignored. (<a href=\"https://github.com/acdlite\"><code>@\u200bacdlite</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24353\">#24353</a>)</li>\n<li>Fix <code>useDeferredValue</code> causing an infinite loop when passed an unmemoized value. (<a href=\"https://github.com/acdlite\"><code>@\u200bacdlite</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24247\">#24247</a>)</li>\n<li>Fix throttling of revealing Suspense fallbacks. (<a href=\"https://github.com/sunderls\"><code>@\u200bsunderls</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24253\">#24253</a>)</li>\n<li>Fix an inconsistency in whether the props object is the same between renders. (<a href=\"https://github.com/Andarist\"><code>@\u200bAndarist</code></a> and <a href=\"https://github.com/acdlite\"><code>@\u200bacdlite</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24421\">#24421</a>)</li>\n<li>Fix a missing warning about a <code>setState</code> loop in <code>useEffect</code>. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24298\">#24298</a>)</li>\n<li>Fix a spurious hydration error. (<a href=\"https://github.com/gnoff\"><code>@\u200bgnoff</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24404\">#24404</a>)</li>\n<li>Warn when calling <code>setState</code> in <code>useInsertionEffect</code>. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24295\">#24295</a>)</li>\n<li>Ensure the reason for hydration errors is always displayed. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24276\">#24276</a>)</li>\n</ul>\n<h3>React DOM Server</h3>\n<ul>\n<li>Fix escaping for the <code>bootstrapScriptContent</code> contents. (<a href=\"https://github.com/gnoff\"><code>@\u200bgnoff</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24385\">#24385</a>)</li>\n<li>Significantly improve performance of <code>renderToPipeableStream</code>. (<a href=\"https://github.com/gnoff\"><code>@\u200bgnoff</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24291\">#24291</a>)</li>\n</ul>\n<h3>ESLint Plugin: React Hooks</h3>\n<ul>\n<li>Fix false positive errors with a large number of branches. (<a href=\"https://github.com/scyron6\"><code>@\u200bscyron6</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24287\">#24287</a>)</li>\n<li>Don't consider a known dependency stable when the variable is reassigned. (<a href=\"https://github.com/afzalsayed96\"><code>@\u200bafzalsayed96</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24343\">#24343</a>)</li>\n</ul>\n<h3>Use Subscription</h3>\n<ul>\n<li>Replace the implementation with the <code>use-sync-external-store</code> shim. (<a href=\"https://github.com/gaearon\"><code>@\u200bgaearon</code></a> in <a href=\"https://github-redirect.dependabot.com/facebook/react/pull/24289\">#24289</a>)</li>\n</ul>\n<h2>18.0.0 (March 29, 2022)</h2>\n<p>Below is a list of all new features, APIs, deprecations, and breaking changes.\nRead <a href=\"https://reactjs.org/blog/2022/03/29/react-v18.html\">React 18 release post</a> and <a href=\"https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html\">React 18 upgrade guide</a> for more information.</p>\n<h3>New Features</h3>\n<h3>React</h3>\n<ul>\n<li><code>useId</code> is a new hook for generating unique IDs on both the client and server, while avoiding hydration mismatches. It is primarily useful for component libraries integrating with accessibility APIs that require unique IDs. This solves an issue that already exists in React 17 and below, but it\u2019s even more important in React 18 because of how the new streaming server renderer delivers HTML out-of-order.</li>\n<li><code>startTransition</code> and <code>useTransition</code> let you mark some state updates as not urgent. Other state updates are considered urgent by default. React will allow urgent state updates (for example, updating a text input) to interrupt non-urgent state updates (for example, rendering a list of search results).</li>\n<li><code>useDeferredValue</code> lets you defer re-rendering a non-urgent part of the tree. It is similar to debouncing, but has a few advantages compared to it. There is no fixed time delay, so React will attempt the deferred render right after the first render is reflected on the screen. The deferred render is interruptible and doesn't block user input.</li>\n<li><code>useSyncExternalStore</code> is a new hook that allows external stores to support concurrent reads by forcing updates to the store to be synchronous. It removes the need for <code>useEffect</code> when implementing subscriptions to external data sources, and is recommended for any library that integrates with state external to React.</li>\n<li><code>useInsertionEffect</code> is a new hook that allows CSS-in-JS libraries to address performance issues of injecting styles in render. Unless you\u2019ve already built a CSS-in-JS library we don\u2019t expect you to ever use this. This hook will run after the DOM is mutated, but before layout effects read the new layout. This solves an issue that already exists in React 17 and below, but is even more important in React 18 because React yields to the browser during concurrent rendering, giving it a chance to recalculate layout.</li>\n</ul>\n<h3>React DOM Client</h3>\n<p>These new APIs are now exported from <code>react-dom/client</code>:</p>\n<ul>\n<li><code>createRoot</code>: New method to create a root to <code>render</code> or <code>unmount</code>. Use it instead of <code>ReactDOM.render</code>. New features in React 18 don't work without it.</li>\n</ul>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/facebook/react/commit/bd4784c8f8c6b17cf45c712db8ed8ed19a622b26\"><code>bd4784c</code></a> Revert <a href=\"https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24236\">#24236</a> (Don't recreate the same fallback on the client if hydrating su...</li>\n<li><a href=\"https://github.com/facebook/react/commit/9ae80d6a2bf8f48f20e3d62b9672f21c1ff77bd8\"><code>9ae80d6</code></a> Suppress hydration warnings when a preceding sibling suspends (<a href=\"https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24404\">#24404</a>)</li>\n<li><a href=\"https://github.com/facebook/react/commit/0dc4e6663dc875e0f734b1a96b26ebc33902323a\"><code>0dc4e66</code></a> Land enableClientRenderFallbackOnHydrationMismatch (<a href=\"https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24410\">#24410</a>)</li>\n<li><a href=\"https://github.com/facebook/react/commit/354772952a8228255cc7e8e32906e427e5255c30\"><code>3547729</code></a> Land enableSelectiveHydration flag (<a href=\"https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24406\">#24406</a>)</li>\n<li><a href=\"https://github.com/facebook/react/commit/392808a1f7fa2909492a742116ba8b549e862d70\"><code>392808a</code></a> Land enableClientRenderFallbackOnTextMismatch flag (<a href=\"https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24405\">#24405</a>)</li>\n<li><a href=\"https://github.com/facebook/react/commit/a6d53f3468636bcee30c26d4e0df7a4582526d63\"><code>a6d53f3</code></a> Revert "Clean up Selective Hydration / Event Replay flag (<a href=\"https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24156\">#24156</a>)" (<a href=\"https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24402\">#24402</a>)</li>\n<li><a href=\"https://github.com/facebook/react/commit/2bf5eba7247a58aeb7ba23b3b5630d8bf6c2c4da\"><code>2bf5eba</code></a> explain the rationale for the chosen escaping implemenation in a comment (<a href=\"https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24\">#24</a>...</li>\n<li><a href=\"https://github.com/facebook/react/commit/d40dc73cf903e8a12fd29e900df2406e7f611c5c\"><code>d40dc73</code></a> Escape bootstrapScriptContent for javascript embedding into HTML (<a href=\"https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24385\">#24385</a>)</li>\n<li><a href=\"https://github.com/facebook/react/commit/ea7b2ec2898c615f648aec30fcbcf73aed156583\"><code>ea7b2ec</code></a> Remove wrong return pointer warning</li>\n<li><a href=\"https://github.com/facebook/react/commit/8dcedba15a4a0f5545e3b386355000208884b24f\"><code>8dcedba</code></a> Add fallback shim for AbortController (<a href=\"https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24285\">#24285</a>)</li>\n<li>Additional commits viewable in <a href=\"https://github.com/facebook/react/commits/v18.1.0/packages/react-dom\">compare view</a></li>\n</ul>\n</details>\n<br />\n\nUpdates `@types/react` from 17.0.41 to 18.0.9\n<details>\n<summary>Commits</summary>\n<ul>\n<li>See full diff in <a href=\"https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>", 23 "comments": [], 24 "review_comments": [] 25 }