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

don't call setState in unmounted component

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Labels:
      None
    • Template:
    • Analysis Estimate:
      None
    • Front-End Confidence factor:
      High
    • Front End Estimate:
      Small < 3 days
    • Estimation Notes and Assumptions:
      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

                Assignee:
                mattjlc Matt Connolly
                Reporter:
                zburke Zak_Burke
                Analysis Estimator:
                Tania Fersenheim Tania Fersenheim
                Back End Estimator:
                Marc Johnson Marc Johnson
                Front End Estimator:
                Matt Connolly Matt Connolly
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases