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

Refactor class components that use UNSAFE_ to React.FC

XMLWordPrintable

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

      Class components that use UNSAFE_ methods may cause issues with concurrent rendering in React 18. To be extra safe, we should refactor them to be functional components.

      AC:

      • refactor these files
        • frontend/packages/console-shared/src/components/dropdown/ResourceDropdown.tsx
        • frontend/public/components/graphs/status.jsx
        • frontend/public/components/utils/firehose.jsx (covered by CONSOLE-4511)
        • frontend/public/components/utils/storage-class-dropdown.tsx
      • remove eslint override that allows their use

              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: