Skip to content

[Navigator] _popN does not update routeStack state #1727

@kyle-ssg

Description

@kyle-ssg

The navigator keeps the routestack in state, this seems to be used by getCurrentRoutes. I noticed this gets updated on push but not pop/popN.

I'd expect a state update similar to the following:
this.setState({
idStack: nextIDStack,
routeStack: nextStack,
sceneConfigStack: nextAnimationConfigStack,
updatingRangeStart: nextStack.length - 1,
updatingRangeLength: 1,
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions