PowerHorse Engine
    Preparing search index...

    Variable createPromiseSuspenseConst

    createPromiseSuspense: (
        SuspensePromise: () => Promise<unknown>,
        Content: (props?: unknown, children?: unknown) => Instance,
        Loading?: (props?: unknown, children?: unknown) => Instance,
        Err?: (props?: unknown, children?: unknown) => Instance,
        BooleanConsidered?: boolean,
    ) => SwitchStatementReturn<Instance> = createPromiseSuspenseInternal

    Type Declaration

      • (
            SuspensePromise: () => Promise<unknown>,
            Content: (props?: unknown, children?: unknown) => Instance,
            Loading?: (props?: unknown, children?: unknown) => Instance,
            Err?: (props?: unknown, children?: unknown) => Instance,
            BooleanConsidered?: boolean,
        ): SwitchStatementReturn<Instance>
      • Parameters

        • SuspensePromise: () => Promise<unknown>
        • Content: (props?: unknown, children?: unknown) => Instance
        • OptionalLoading: (props?: unknown, children?: unknown) => Instance
        • OptionalErr: (props?: unknown, children?: unknown) => Instance
        • OptionalBooleanConsidered: boolean

          If the Promise is resolved and the result is a boolean, if true, it will be considered "Resolved", if false,it will be considered "Stale" (Stale means nothing is rendered.)

        Returns SwitchStatementReturn<Instance>