@dxos/app-framework - v0.15.0
    Preparing search index...

    Variable useIsAvailableConst

    useIsAvailable: () => IsSurfaceAvailable = useIsSurfaceAvailable

    Type declaration

      • (): IsSurfaceAvailable
      • Returns IsSurfaceAvailable

        a stable function that checks whether a contributed surface is available for a role & data. The surface manager is captured via context, so the returned function carries no dependency of its own and is safe to store and invoke later — e.g. from inside another callback such as a render-prop or event handler — since it calls no hooks itself.