PowerHorse Engine
    Preparing search index...

    Variable WithSuspenseConst

    WithSuspense: <V>(
        Callback: Promise<V> | (() => V),
        DefaultValue: V,
        ErrorValue?: V,
    ) => V = WithSuspenseInternal

    Type Declaration

      • <V>(Callback: Promise<V> | (() => V), DefaultValue: V, ErrorValue?: V): V
      • Use within a createEffect that is used for a createElement property. If Callback is a function, it will be wrapped in a Promise.try().

        Type Parameters

        • V

        Parameters

        • Callback: Promise<V> | (() => V)
        • DefaultValue: V
        • OptionalErrorValue: V

        Returns V