Skip to content

Actions.pop() on mounted but not visible component #291

@lrettig

Description

@lrettig

Hello,

I'm using a TabBar-based navigation scheme, which means that there are multiple navigation stacks. Sometimes I need to pop an element off one of these stacks while it isn't the currently visible stack (concrete example: user was viewing a data element in tab A, then proceeds to delete that element in tab B). I noticed that calling Actions.pop() inside an element on a different stack actually pops the topmost element off the current stack, which doesn't seem like desirable behavior.

I'm happy to try to fix this, but I want to know if you agree with my proposed behavior: that calling Actions.pop() from a component mounted in stack A, while stack B is visible, would pop it off of stack A, rather than popping the topmost element from stack B.

Thanks.

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