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

AsyncComponent breaks prop type validation

XMLWordPrintable

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

      When using AsyncComponent, the resulting component does not get type checking for the props passed to the loaded component. This causes subtle bugs and oversights when prop types change or are incorrectly used.

      AC:

      • Rewrite AsyncComponent to use React.lazy and to accept a type parameter, which is inferred from the loader prop

              rh-ee-jaclee Jackson Lee
              rh-ee-jaclee Jackson Lee
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: