Membrane React - v0.6.0
    Preparing search index...

    Function useScreen

    • Parameters

      Returns {
          accessor: undefined | ScreenAccessor;
          loading: boolean;
          saving: boolean;
          error: any;
          refresh: () => Promise<
              {
                  id: string;
                  name: string;
                  type: Integration;
                  key?: string;
                  blocks: ({ type: ScreenBlockType } & Record<string, any>)[];
              },
          >;
          refreshing: boolean;
          create: (
              data: CreateScreenRequest,
          ) => Promise<
              | undefined
              | {
                  id: string;
                  name: string;
                  type: Integration;
                  key?: string;
                  blocks: ({ type: ScreenBlockType } & Record<string, any>)[];
              },
          >;
          patch: (data: Partial<UpdateRequest>) => Promise<void>;
          put: (data: UpdateScreenRequest) => Promise<void>;
          archive: () => Promise<void>;
          screen:
              | undefined
              | {
                  id: string;
                  name: string;
                  type: Integration;
                  key?: string;
                  blocks: ({ type: ScreenBlockType } & Record<string, any>)[];
              };
      }