• A React Hook that provides all registered contributions for the given contribution point identifier contribPointId and optional contribution key contribKey. The latter is used for contributions that are objects and where each object property provides a subset of contributions. In this case, contributions are collected for the same contribPointId and same contribKey.

    Usually you won’t use useContributions directly in your components. Instead, you provide your own custom Hook for your contribution point identified by contribPointId.

    See also the core.getContributions function, which is the non-reactive equivalent of this Hook.

    Type Parameters

    • T

    Parameters

    • contribPointId: string

      The contribution point identifier

    • Optional contribKey: null | string

      An optional contribution key

    Returns T[]

    An array of all extension contributions. If a contribution is an array, its flattened items are appended to the return value.

Generated using TypeDoc