Skip to content

[bug] React state update warning on phone number verification page #668

@pandafy

Description

@pandafy

When reloading the phone number verification page, a warning is displayed in the console indicating a React state update on an unmounted component.

Steps to replicate:

  1. Enable phone verification in organization config in OWLP and enable SMS verification in organization settings in OpenWISP Radius.
  2. Sign-up using the phone verification
  3. Reload the page.

Expected Result:
No warning should be displayed in the console.

Actual Result:
The following warning message appears in the console:

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 Status (created by Connect(Status))
    in Connect(Status) (created by OrganizationWrapper)
    in Suspense (created by OrganizationWrapper)

Originally posted by @nemesifier in #665 (review)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Backlog

    Status

    To do (general)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions