Skip to content

Conversation

@thomasuster
Copy link

test

Tasks

Adopt new hooks

Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18

Instructions

  • Replace any CSS-in-JS style injections in render with useInsertionEffect
    • docs/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.min.js

Update Client Rendering APIs

React 18 introduces a new root API which provides better ergonomics for managing roots. The new root API also enables the new concurrent renderer, which allows you to opt-into concurrent features.

Instructions

  • Replace render with createRoot
    • docs/node_modules/@reduxjs/toolkit/src/query/tests/cleanup.test.tsx
    • examples/async/src/index.js
    • examples/real-world/src/index.js
    • examples/shopping-cart/src/index.js
    • examples/todomvc/src/index.js
    • examples/todos-with-undo/src/index.js
    • examples/todos/src/index.js
    • examples/tree-view/src/index.js
    • examples/universal/client/index.js

Update Server Rendering APIs

In this release, we’re revamping our react-dom/server APIs to fully support Suspense on the server and Streaming SSR. As part of these changes, we’re deprecating the old Node streaming API, which does not support incremental Suspense streaming on the server.

Instructions

  • Replace renderToNodeStream with renderToPipeableStream
    • docs/node_modules/@types/react-dom/server.d.ts

Upgrade repo

npm upgrade

Instructions

  • Upgrade repo library
    • migrations/test/harfoots/redux/docs/package.json
    • migrations/test/harfoots/redux/docs/yarn.lock

Errors

Update Client Rendering APIs

React 18 introduces a new root API which provides better ergonomics for managing roots. The new root API also enables the new concurrent renderer, which allows you to opt-into concurrent features.

Instructions

  • Replace render with createRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.min.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.min.js for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.
  • Replace unmountComponentAtNode with root.unmount

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.min.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.min.js for task: Update Client Rendering APIs, step: Replace unmountComponentAtNode with root.unmount exceeds 2000 tokens and not currently supported.
  • Replace hydrate with hydrateRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.min.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.min.js for task: Update Client Rendering APIs, step: Replace hydrate with hydrateRoot exceeds 2000 tokens and not currently supported.

Adopt new hooks

Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18

Instructions

  • Replace any CSS-in-JS style injections in render with useInsertionEffect
    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.min.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.min.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

Update Client Rendering APIs

React 18 introduces a new root API which provides better ergonomics for managing roots. The new root API also enables the new concurrent renderer, which allows you to opt-into concurrent features.

Instructions

  • Replace render with createRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.esm.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.esm.js for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.
  • Replace unmountComponentAtNode with root.unmount

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.esm.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.esm.js for task: Update Client Rendering APIs, step: Replace unmountComponentAtNode with root.unmount exceeds 2000 tokens and not currently supported.
  • Replace hydrate with hydrateRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.esm.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.esm.js for task: Update Client Rendering APIs, step: Replace hydrate with hydrateRoot exceeds 2000 tokens and not currently supported.

Adopt new hooks

Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18

Instructions

  • Replace any CSS-in-JS style injections in render with useInsertionEffect
    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.esm.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.esm.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

Handle Deprecations

Several ReactDOM methods have been deprecated in React 18

Instructions

  • Replace ReactDOM.render with ReactDOM.createRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.esm.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.esm.js for task: Handle Deprecations, step: Replace ReactDOM.render with ReactDOM.createRoot exceeds 2000 tokens and not currently supported.
  • Replace ReactDOM.hydrate with ReactDOM.createRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.esm.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.esm.js for task: Handle Deprecations, step: Replace ReactDOM.hydrate with ReactDOM.createRoot exceeds 2000 tokens and not currently supported.

Update Client Rendering APIs

React 18 introduces a new root API which provides better ergonomics for managing roots. The new root API also enables the new concurrent renderer, which allows you to opt-into concurrent features.

Instructions

  • Replace render with createRoot

    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/src/query/tests/refetchingBehaviors.test.tsx: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/src/query/tests/refetchingBehaviors.test.tsx for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.cjs.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.cjs.js for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.

  • Replace unmountComponentAtNode with root.unmount

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.cjs.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.cjs.js for task: Update Client Rendering APIs, step: Replace unmountComponentAtNode with root.unmount exceeds 2000 tokens and not currently supported.
  • Replace hydrate with hydrateRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.cjs.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.cjs.js for task: Update Client Rendering APIs, step: Replace hydrate with hydrateRoot exceeds 2000 tokens and not currently supported.

Adopt new hooks

Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18

Instructions

  • Replace any CSS-in-JS style injections in render with useInsertionEffect
    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.cjs.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.cjs.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

Update Client Rendering APIs

React 18 introduces a new root API which provides better ergonomics for managing roots. The new root API also enables the new concurrent renderer, which allows you to opt-into concurrent features.

Instructions

  • Replace render with createRoot
    • migrations/test/harfoots/redux/docs/node_modules/@types/react/index.d.ts: migrations/test/harfoots/redux/docs/node_modules/@types/react/index.d.ts for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/@types/react-dom/test-utils/index.d.ts: migrations/test/harfoots/redux/docs/node_modules/@types/react-dom/test-utils/index.d.ts for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/react-redux/src/components/connect.tsx: migrations/test/harfoots/redux/docs/node_modules/react-redux/src/components/connect.tsx for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/react-redux/es/components/connect.js: migrations/test/harfoots/redux/docs/node_modules/react-redux/es/components/connect.js for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.

Adopt new hooks

Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18

Instructions

  • Replace any CSS-in-JS style injections in render with useInsertionEffect
    • migrations/test/harfoots/redux/docs/node_modules/react-redux/es/components/connect.js: migrations/test/harfoots/redux/docs/node_modules/react-redux/es/components/connect.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

Update Client Rendering APIs

React 18 introduces a new root API which provides better ergonomics for managing roots. The new root API also enables the new concurrent renderer, which allows you to opt-into concurrent features.

Instructions

  • Replace render with createRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.esm.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.esm.js for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.
  • Replace unmountComponentAtNode with root.unmount

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.esm.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.esm.js for task: Update Client Rendering APIs, step: Replace unmountComponentAtNode with root.unmount exceeds 2000 tokens and not currently supported.
  • Replace hydrate with hydrateRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.esm.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.esm.js for task: Update Client Rendering APIs, step: Replace hydrate with hydrateRoot exceeds 2000 tokens and not currently supported.

Adopt new hooks

Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18

Instructions

  • Replace any CSS-in-JS style injections in render with useInsertionEffect
    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.esm.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.esm.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

Handle Deprecations

Several ReactDOM methods have been deprecated in React 18

Instructions

  • Replace ReactDOM.render with ReactDOM.createRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.esm.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.esm.js for task: Handle Deprecations, step: Replace ReactDOM.render with ReactDOM.createRoot exceeds 2000 tokens and not currently supported.
  • Replace ReactDOM.hydrate with ReactDOM.createRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.esm.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.esm.js for task: Handle Deprecations, step: Replace ReactDOM.hydrate with ReactDOM.createRoot exceeds 2000 tokens and not currently supported.

Update Client Rendering APIs

React 18 introduces a new root API which provides better ergonomics for managing roots. The new root API also enables the new concurrent renderer, which allows you to opt-into concurrent features.

Instructions

  • Replace render with createRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.js for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.
  • Replace unmountComponentAtNode with root.unmount

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.js for task: Update Client Rendering APIs, step: Replace unmountComponentAtNode with root.unmount exceeds 2000 tokens and not currently supported.
  • Replace hydrate with hydrateRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.js for task: Update Client Rendering APIs, step: Replace hydrate with hydrateRoot exceeds 2000 tokens and not currently supported.

Adopt new hooks

Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18

Instructions

  • Replace any CSS-in-JS style injections in render with useInsertionEffect
    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

Update Client Rendering APIs

React 18 introduces a new root API which provides better ergonomics for managing roots. The new root API also enables the new concurrent renderer, which allows you to opt-into concurrent features.

Instructions

  • Replace render with createRoot

    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/src/query/tests/useMutation-fixedCacheKey.test.tsx: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/src/query/tests/useMutation-fixedCacheKey.test.tsx for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/src/query/tests/errorHandling.test.tsx: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/src/query/tests/errorHandling.test.tsx for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.umd.min.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.umd.min.js for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.

  • Replace unmountComponentAtNode with root.unmount

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.umd.min.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.umd.min.js for task: Update Client Rendering APIs, step: Replace unmountComponentAtNode with root.unmount exceeds 2000 tokens and not currently supported.
  • Replace hydrate with hydrateRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.umd.min.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.umd.min.js for task: Update Client Rendering APIs, step: Replace hydrate with hydrateRoot exceeds 2000 tokens and not currently supported.

Adopt new hooks

Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18

Instructions

  • Replace any CSS-in-JS style injections in render with useInsertionEffect
    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.umd.min.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.umd.min.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

Update Client Rendering APIs

React 18 introduces a new root API which provides better ergonomics for managing roots. The new root API also enables the new concurrent renderer, which allows you to opt-into concurrent features.

Instructions

  • Replace render with createRoot
    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/src/query/tests/buildHooks.test.tsx: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/src/query/tests/buildHooks.test.tsx for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/react-redux/dist/react-redux.js: migrations/test/harfoots/redux/docs/node_modules/react-redux/dist/react-redux.js for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.

Adopt new hooks

Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18

Instructions

  • Replace any CSS-in-JS style injections in render with useInsertionEffect
    • migrations/test/harfoots/redux/docs/node_modules/react-redux/dist/react-redux.js: migrations/test/harfoots/redux/docs/node_modules/react-redux/dist/react-redux.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

Update Client Rendering APIs

React 18 introduces a new root API which provides better ergonomics for managing roots. The new root API also enables the new concurrent renderer, which allows you to opt-into concurrent features.

Instructions

  • Replace render with createRoot
    • migrations/test/harfoots/redux/docs/node_modules/react-redux/lib/components/connect.js: migrations/test/harfoots/redux/docs/node_modules/react-redux/lib/components/connect.js for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.

Adopt new hooks

Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18

Instructions

  • Replace any CSS-in-JS style injections in render with useInsertionEffect
    • migrations/test/harfoots/redux/docs/node_modules/react-redux/lib/components/connect.js: migrations/test/harfoots/redux/docs/node_modules/react-redux/lib/components/connect.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

Update Client Rendering APIs

React 18 introduces a new root API which provides better ergonomics for managing roots. The new root API also enables the new concurrent renderer, which allows you to opt-into concurrent features.

Instructions

  • Replace render with createRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/pure.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/pure.js for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.
  • Replace unmountComponentAtNode with root.unmount

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/pure.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/pure.js for task: Update Client Rendering APIs, step: Replace unmountComponentAtNode with root.unmount exceeds 2000 tokens and not currently supported.
  • Replace hydrate with hydrateRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/pure.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/pure.js for task: Update Client Rendering APIs, step: Replace hydrate with hydrateRoot exceeds 2000 tokens and not currently supported.

Adopt new hooks

Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18

Instructions

  • Replace any CSS-in-JS style injections in render with useInsertionEffect
    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/pure.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/pure.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

Update Client Rendering APIs

React 18 introduces a new root API which provides better ergonomics for managing roots. The new root API also enables the new concurrent renderer, which allows you to opt-into concurrent features.

Instructions

  • Replace render with createRoot
    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.umd.min.js: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.umd.min.js for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.

Adopt new hooks

Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18

Instructions

  • Replace any CSS-in-JS style injections in render with useInsertionEffect
    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.umd.min.js: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.umd.min.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

Update Client Rendering APIs

React 18 introduces a new root API which provides better ergonomics for managing roots. The new root API also enables the new concurrent renderer, which allows you to opt-into concurrent features.

Instructions

  • Replace render with createRoot

    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/src/query/tests/optimisticUpserts.test.tsx: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/src/query/tests/optimisticUpserts.test.tsx for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.umd.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.umd.js for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.

  • Replace unmountComponentAtNode with root.unmount

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.umd.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.umd.js for task: Update Client Rendering APIs, step: Replace unmountComponentAtNode with root.unmount exceeds 2000 tokens and not currently supported.
  • Replace hydrate with hydrateRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.umd.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.umd.js for task: Update Client Rendering APIs, step: Replace hydrate with hydrateRoot exceeds 2000 tokens and not currently supported.

Adopt new hooks

Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18

Instructions

  • Replace any CSS-in-JS style injections in render with useInsertionEffect
    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.umd.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.umd.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

Update Client Rendering APIs

React 18 introduces a new root API which provides better ergonomics for managing roots. The new root API also enables the new concurrent renderer, which allows you to opt-into concurrent features.

Instructions

  • Replace render with createRoot

    • migrations/test/harfoots/redux/docs/node_modules/ora/index.js: migrations/test/harfoots/redux/docs/node_modules/ora/index.js for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.umd.js: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.umd.js for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.

  • Replace unmountComponentAtNode with root.unmount

    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.umd.js: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.umd.js for task: Update Client Rendering APIs, step: Replace unmountComponentAtNode with root.unmount exceeds 2000 tokens and not currently supported.
  • Replace hydrate with hydrateRoot

    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.umd.js: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.umd.js for task: Update Client Rendering APIs, step: Replace hydrate with hydrateRoot exceeds 2000 tokens and not currently supported.

Adopt new hooks

Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18

Instructions

  • Replace any CSS-in-JS style injections in render with useInsertionEffect
    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.umd.js: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.umd.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

Handle Deprecations

Several ReactDOM methods have been deprecated in React 18

Instructions

  • Replace ReactDOM.render with ReactDOM.createRoot

    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.umd.js: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.umd.js for task: Handle Deprecations, step: Replace ReactDOM.render with ReactDOM.createRoot exceeds 2000 tokens and not currently supported.
  • Replace ReactDOM.hydrate with ReactDOM.createRoot

    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.umd.js: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.umd.js for task: Handle Deprecations, step: Replace ReactDOM.hydrate with ReactDOM.createRoot exceeds 2000 tokens and not currently supported.

Update Client Rendering APIs

React 18 introduces a new root API which provides better ergonomics for managing roots. The new root API also enables the new concurrent renderer, which allows you to opt-into concurrent features.

Instructions

  • Replace render with createRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.cjs.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.cjs.js for task: Update Client Rendering APIs, step: Replace render with createRoot exceeds 2000 tokens and not currently supported.
  • Replace unmountComponentAtNode with root.unmount

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.cjs.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.cjs.js for task: Update Client Rendering APIs, step: Replace unmountComponentAtNode with root.unmount exceeds 2000 tokens and not currently supported.
  • Replace hydrate with hydrateRoot

    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.cjs.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.cjs.js for task: Update Client Rendering APIs, step: Replace hydrate with hydrateRoot exceeds 2000 tokens and not currently supported.

Adopt new hooks

Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18

Instructions

  • Replace any CSS-in-JS style injections in render with useInsertionEffect
    • migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.cjs.js: migrations/test/harfoots/redux/docs/node_modules/@testing-library/react/dist/@testing-library/react.pure.cjs.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

Update Client Rendering APIs

React 18 introduces a new root API which provides better ergonomics for managing roots. The new root API also enables the new concurrent renderer, which allows you to opt-into concurrent features.

Instructions

  • Replace hydrate with hydrateRoot
    • migrations/test/harfoots/redux/docs/node_modules/msw/lib/native/index.js: migrations/test/harfoots/redux/docs/node_modules/msw/lib/native/index.js for task: Update Client Rendering APIs, step: Replace hydrate with hydrateRoot exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/msw/lib/iife/index.js: migrations/test/harfoots/redux/docs/node_modules/msw/lib/iife/index.js for task: Update Client Rendering APIs, step: Replace hydrate with hydrateRoot exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/msw/lib/node/index.js: migrations/test/harfoots/redux/docs/node_modules/msw/lib/node/index.js for task: Update Client Rendering APIs, step: Replace hydrate with hydrateRoot exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/msw/lib/index.js: migrations/test/harfoots/redux/docs/node_modules/msw/lib/index.js for task: Update Client Rendering APIs, step: Replace hydrate with hydrateRoot exceeds 2000 tokens and not currently supported.

Adopt new hooks

Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18

Instructions

  • Replace any CSS-in-JS style injections in render with useInsertionEffect
    • migrations/test/harfoots/redux/docs/node_modules/react-redux/dist/react-redux.min.js: migrations/test/harfoots/redux/docs/node_modules/react-redux/dist/react-redux.min.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/react/umd/react.profiling.min.js: migrations/test/harfoots/redux/docs/node_modules/react/umd/react.profiling.min.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js: migrations/test/harfoots/redux/docs/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/react/umd/react.development.js: migrations/test/harfoots/redux/docs/node_modules/react/umd/react.development.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.modern.production.min.js: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.modern.production.min.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.modern.development.js: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.modern.development.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.modern.js: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.modern.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.esm.js: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.esm.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/react/umd/react.production.min.js: migrations/test/harfoots/redux/docs/node_modules/react/umd/react.production.min.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/react/cjs/react.development.js: migrations/test/harfoots/redux/docs/node_modules/react/cjs/react.development.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/react/cjs/react.production.min.js: migrations/test/harfoots/redux/docs/node_modules/react/cjs/react.production.min.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.cjs.development.js: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.cjs.development.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

    • migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.cjs.production.min.js: migrations/test/harfoots/redux/docs/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.cjs.production.min.js for task: Adopt new hooks, step: Replace any CSS-in-JS style injections in render with useInsertionEffect exceeds 2000 tokens and not currently supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants