Uploaded image for project: 'ui-requests'
  1. ui-requests
  2. UIREQ-26

don't call setState in unmounted component

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 1.2.0
    • None
    • None
    • High
    • Small < 3 days
    • Applies to UI modules only

    Description

      https://github.com/folio-org/ui-requests/blob/1a869b91e56ce5b8cf2e73e0dc7d89010b6f8132/ViewRequest.js#L68-L83 potentially calls setState after the component has unmounted, generating the console warning, Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the ViewRequest component.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                mattjlc Matt Connolly
                zburke Zak_Burke
                Tania Fersenheim Tania Fersenheim
                Marc Johnson Marc Johnson
                Matt Connolly Matt Connolly
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases