Hex Core JS
    Preparing search index...

    Function useActivePageRegistration

    • Registers the given PageInfo with the ActivePageManager to make app context aware of active pages. Every page component in an application should have a PageInfo defined and should register that information using useActivePageRegistration on mount.

      Type Parameters

      Parameters

      Returns void

      Component using this hook must be a descendant of an ActivePageManager.

      function Page() {
      const {isLoading, data} = useObjectQuery();
      useActivePageRegistration(pageInfo, isLoading ? "" : pageInfo.title(data));

      // ...
      }
    • Registers the given PageInfo with the ActivePageManager to make app context aware of active pages. Every page component in an application should have a PageInfo defined and should register that information using useActivePageRegistration on mount.

      Type Parameters

      Parameters

      Returns void

      Component using this hook must be a descendant of an ActivePageManager.

      function Page() {
      useActivePageRegistration(pageInfo);

      // ...
      }