rx-datatable API
    Preparing search index...

    Function coalesce

    • This is the same as the ?? operator except that the second argument is evaluated unconditionally. Since hooks must be evaluated unconditionally, this makes it useful for using a hook's output as a default, e.g.

       const value = coalesce(p.parentState, useHeldState(''));
      

      Type Parameters

      • T

      Parameters

      • override: nully | T
      • defaultValue: T

      Returns T