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

Complete steps 1, 2, 4, 5 of react-router v6 migration strategy

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • Dynamic Plugins
    • None
    • HAC Infra OCP - Sprint 245

      Completion of the following steps in the migration strategy guide are reliant on each other and therefore should be completed in a single story:

      • Render CompatRoute elements inside of Switch
      • Convert Switch to Routes
      • Rinse and Repeat up the tree
      • Change component code use v6 instead of v5 APIs

      Upon completing these steps, all Switch and Route components will be upgraded to the Routes and Route components in the compatibility package. Since v6 now supports nested routes, parent and children routing components need to be updated accordingly for the pages to load the correct routes. 

      AC: Following the migration strategy guide, complete step 1: render `CompatRoute` components inside of `Switch` component, step 2: Change component code use v6 instead of v5 APIs, step 4: Convert Switch to Routes, and step 5: Rinse and repeat up the tree. 

      Note: This story contains changes in frontend/packages and in the console core package, which is placed in the public folder.

            jhadvig@redhat.com Jakub Hadvig
            jhadvig@redhat.com Jakub Hadvig
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: