Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-2079

Cannot access entity from a custom entity context menu component

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 1.7.1
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Description of problem:

      It's possible to add custom entries to the context menu of the entity page in Developer Hub via the entity.context.menu mount point from a dynamic plugin. However components using this mount point cannot access the catalog entity being viewed using the normal useEntity hook and encounter the following error when accessing the catalog entity page:

      Error: useEntity hook is being called outside of an EntityLayout where the entity has not been loaded. If this is intentional, please use useAsyncEntity instead

      Steps to Reproduce

       There is a branch here which includes code to try and access the catalog entity object. When the plugin is configured, accessing any catalog entity page will result in the following:

              Unassigned Unassigned
              stlewis_2 Stan Lewis
              RHIDP - Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: