Skip to content

[docs]: Migrate from navigationService.navigateToView with id to routerService #1158

@hhoa-commnia

Description

@hhoa-commnia

Describe the missing piece of documentation

We're currently implementing nested navigation by assigning an id when navigating between screens. However, after migrating from NavigationService to RouterService, the id is no longer included in the arguments. As a result, using RouterService.back() doesn't take us back to the intended page.
Could you please guide us on how to handle this scenario?
Thank you!

Example of navigation service

  • Push
    _navigationService.navigateToView( const ProjectSiteDiaryView(), id: nestedNavigationRouteId, );
  • Pop
    _navigationService.back(id: nestedNavigationRouteId);

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationIssue to force documentation updates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions