Skip to content

Programmatically unmount previous components? #415

@rlau1115

Description

@rlau1115

Is there any way to remove / unmount components from the navigation stack?

I'm using Redux in my app, and there are several instances where I modify or remove certain objects in my state after navigating to a new component. However, the app crashes because components that are no longer being displayed are still depending on the non-existent state objects.

I've tried having multiple calls of Actions.pop() (one for each view that I'm trying to remove), but it isn't working. Any insight?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions