Skip to content

Investigate possible memory leak when user is logged out due to inactivity #31

Description

@zfrantzen

Currently, when a user is logged out due to inactivity, the runtime environment complains and outputs the error (generated when setting the status code to 403 on the registration page):

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.

This error is likely due to changing views with the service function. Once the service function returns, the calling function may try to do some state changes (like setting the activity spinner to be not visible). Should probably solve this issue, though at the moment it isn't the highest priority as there's minimal effect being more of an edge case. May require refactoring service handling (promises?) throughout the app, so maybe a large time commitment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions