Skip to content

Router: Deprecate or remove navigationId in history.state #27607

Closed

Description

@jasonaden

Currently the navigationId is stores in history.state. But with #27198 users can now set data into history.state. If the developer were to set a navigationId property it would get clobbered by Angular's setting of the same field.

We would like to deprecate (or maybe just remove since we never put it in the public API) the navigationId and add another data structure inside history.state that can be specific to Angular. This way, when we want to add more data to history.state, we have an object key under which we can do so. One idea is to add the scroll position to history.state rather than storing it in the router. This would allow us to preserve scroll position through hard browser refreshes.

FW-771

Activity

  1. changed the title [-]Router: Deprecate `navigationId` in `history.state`[/-] [+]Router: Deprecate or remove `navigationId` in `history.state`[/+] on Dec 11, 2018
  2. added this to the needsTriage milestone on Dec 13, 2018
  3. added
    feature
    on Dec 13, 2018
  4. modified the milestones: needsTriage, Backlog on Dec 13, 2018
  5. angular-robot commented on Jun 4, 2021

    @angular-robot
    Contributor

    Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

    Find more details about Angular's feature request process in our documentation.

  6. angular-robot commented on Jun 27, 2021

    @angular-robot
    Contributor

    Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

    We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

    You can find more details about the feature request process in our documentation.

  7. angular-automatic-lock-bot commented on Mar 4, 2022

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  8. locked and limited conversation to collaborators on Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: routerfeature

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions