Skip to content

CanDeactivate guard documentation doesn't state when "nextState" can be undefined #47153

Closed

Description

@MinaFayez9

Description

I can't find in any place in the documentation a reference for when "nextState" property of the "CanDeactivate" might be sent by undefined and what is the logic behind it, so could you please explain it here and update the documentation about it ?

What is the affected URL?

https://angular.io/api/router/CanDeactivate

Please provide the steps to reproduce the issue

No response

Please provide the expected behavior vs the actual behavior you encountered

No response

Please provide a screenshot if possible

No response

Please provide the exception or error you saw

No response

Is this a browser-specific issue? If so, please specify the device, browser, and version.

No response

Activity

  1. modified the milestone: needsTriage on Aug 15, 2022
  2. atscott commented on Aug 18, 2022

    @atscott
    Contributor

    In reality, this should not be typed as an optional parameter. nextState was added in #13560 and the argument passed was never potentially undefined as far as I can tell.

  3. added
    P3
    on Nov 16, 2022
  4. modified the milestones: needsTriage, Backlog on Nov 16, 2022
  5. added a commit that references this issue on Nov 17, 2022
    e4309d5
  6. angular-automatic-lock-bot commented on Dec 30, 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.

  7. locked and limited conversation to collaborators on Dec 30, 2022
  8. added a commit that references this issue on Feb 1, 2023
    f7ea29c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3area: routerrouter: guards/resolvers

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions