Uploaded image for project: 'OpenShift Console'
  1. OpenShift Console
  2. CONSOLE-4989

Upgrade to react-redux 8.1.3

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      react-redux 7.2.9 does not support React 18 and type checking with @types/react 18 does not work (e.g., connect HOC has type errors when using React.FC).

      Thus we need to bump react-redux to at least the next major version (8.0.0 / 8.1.3) as a prerequisite. We may optionally bump the to newest version 9.2.0 after upgrading to React 18, which drops React 17 support but also enables React 19 compatibility.

      See https://github.com/reduxjs/react-redux/releases/tag/v8.0.0 for some remarks:

      > This major version release updates useSelector, connect, and <Provider> for compatibility with React 18, rewrites the React-Redux codebase to TypeScript (obsoleting use of @types/react-redux), modernizes build output, and removes the deprecated connectAdvanced API and the pure option for connect.

       

       

              Unassigned Unassigned
              rh-ee-jaclee Jackson Lee
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: