Axinom Mosaic Libraries
    Preparing search index...

    Function useValueOrOnDemand

    • Returns the value and a loading indicator

      Parameters

      • input: ValueOrOnDemand = ''

        the text or function to retrieve the text

      • OptionalonError: (err: any) => string

        a callback that will be called when the input could not be retrieved. It should return a fallback value that will be used instead.

      Returns readonly [string, boolean]