Uploaded image for project: 'OpenShift Console'
  1. OpenShift Console
  2. CONSOLE-4990

Remove usage of history object in console codebase

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • None
    • None
    • OCP Console - Sprint 283

      Direct access of the history object (from public/components/utils/router.ts) and its dependents:

      • setQueryArgument
      • setQueryArguments
      • setAllQueryArguments
      • removeQueryArgument
      • removeQueryArguments
      • setOrRemoveQueryArgument

      are not officially supported by react-router v7, so we should remove them and replace them with useLocation and related hooks when possible.

      Note: this is a nice-to-have as react-router still """""supports""""" BYO history object, it's just not supported or recommended: https://api.reactrouter.com/v7/functions/react_router.unstable_HistoryRouter.html 

              rhn-engineering-rhamilto Robb Hamilton
              rh-ee-jaclee Jackson Lee
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: