Skip to content

[Deps] Upgrade history package to 5.x #2531

@yurishkuro

Description

@yurishkuro

Some functionality has been deprecated in that library, we need to understand what the replacement is, and whether it is compatible with the modern React at all.

Per @anshgoyalevil's comment #2531 (comment)

The steps towards upgrading the project as a whole would be to

  • First shift to functional components in place of class components
  • After that is done, try removing the instances of the history package and use useNavigate hook (you can now use hooks because functional components are allowed to do that)
  • The project already uses react-router-dom v5 compat v6, so you can directly use react-router-dom v6 APIs without breaking the whole project. Aim for 1 file/router at a time in one PR.

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