Skip to content

State-discard-callback behaves incorrectly with browser navigation #83

@sportlog

Description

@sportlog

Hi,

the statediscard callback works fine when changing the routedApp or the metarouter. ("registerAllowStateDiscardCallbackAsync")

However it behaves incorrectly with browser navigation.
Problems:

  • When navigation back from a "dirty" route the stateDiscard-Callback is not called
  • When navigation forward again the stateDiscard-Callback is called, while seeing the not dirty route

This limitation is due to the "hashChange" event, which does not allow event interception. (compared to onbeforeunload).

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