Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-9672

Fix useEffect error in new metric page

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • System
    • None
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

    Description

      Something is wrong with useEffect, it throws the following error:

      [Error] Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
          in FancySelect (created by SelectWithModal)
          in SelectWithModal (created by RadioOption)
          in div (created by RadioOption)
          in RadioOption (created by MetricInput)
      
      [Error] Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
          in Select (created by FancySelect)
          in div (created by GenerateId)
          in div (created by GenerateId)
          in GenerateId (created by FormGroup)
          in FormGroup (created by FancySelect)
          in FancySelect (created by SelectWithModal)
          in SelectWithModal (created by RadioOption)
          in div (created by RadioOption)
          in RadioOption (created by MetricInput)
      

      Steps to reproduce:
      Screen Recording 2023-05-23 at 12.23.57.mov

      Attachments

        Activity

          People

            Unassigned Unassigned
            jgallaso Jose Miguel Gallas Olmedo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: