Skip to content

DRY beforeUnload behavior #5977

@philippotto

Description

@philippotto

Description

See #5948 for context. The current behavior (which serves the browser's beforeUnload as well as the react-router's one) is currently used in:

  • tracing layout view
  • dataset import view
  • dataset upload view

Ideally, we would use a react hook to DRY this mechanism, however, the using components would need to be converted to functional components first. Maybe a HOC is also a viable option.

Impact

Rather lower. The next time we touch this code, it would be a good idea to tackle this issue.

Cost

0.5 day ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions