test: Upgrade react to 18 on branch smartshift-thomasuster-1690307212 #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
test
Tasks
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
Upgrade repo
npm upgrade
Instructions
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
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/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
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
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/@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
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/@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
Replace hydrate with hydrateRoot
Adopt new hooks
Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18
Instructions
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
Replace unmountComponentAtNode with root.unmount
Replace hydrate with hydrateRoot
Adopt new hooks
Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18
Instructions
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
Replace unmountComponentAtNode with root.unmount
Replace hydrate with hydrateRoot
Adopt new hooks
Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18
Instructions
Handle Deprecations
Several ReactDOM methods have been deprecated in React 18
Instructions
Replace ReactDOM.render with ReactDOM.createRoot
Replace ReactDOM.hydrate with ReactDOM.createRoot
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
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/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
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
Replace unmountComponentAtNode with root.unmount
Replace hydrate with hydrateRoot
Adopt new hooks
Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18
Instructions
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
Replace unmountComponentAtNode with root.unmount
Replace hydrate with hydrateRoot
Adopt new hooks
Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18
Instructions
Handle Deprecations
Several ReactDOM methods have been deprecated in React 18
Instructions
Replace ReactDOM.render with ReactDOM.createRoot
Replace ReactDOM.hydrate with ReactDOM.createRoot
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
Adopt new hooks
Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18
Instructions
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/@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.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
Replace hydrate with hydrateRoot
Adopt new hooks
Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18
Instructions
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
Replace unmountComponentAtNode with root.unmount
Replace hydrate with hydrateRoot
Adopt new hooks
Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18
Instructions
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/@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
Replace hydrate with hydrateRoot
Adopt new hooks
Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18
Instructions
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/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
Replace hydrate with hydrateRoot
Adopt new hooks
Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18
Instructions
Handle Deprecations
Several ReactDOM methods have been deprecated in React 18
Instructions
Replace ReactDOM.render with ReactDOM.createRoot
Replace ReactDOM.hydrate with ReactDOM.createRoot
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
Replace unmountComponentAtNode with root.unmount
Replace hydrate with hydrateRoot
Adopt new hooks
Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18
Instructions
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
Replace hydrate with hydrateRoot
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.
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.
Adopt new hooks
Adopt the useSyncExternalStore and useInsertionEffect hooks introduced in React 18
Instructions
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.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/@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.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.
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/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/@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/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.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.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/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.