Arc.React
    Preparing search index...

    Class ObservableQueryWhen<TQuery, TDataType, TArguments>

    Represents a conditional observable query binding that conditionally subscribes based on a boolean condition. When the condition is false, all hooks are no-ops and return empty results. When true, they behave exactly as calling the underlying hooks directly.

    Obtain an instance via the static when() method on a generated observable query class:

    const [result] = MyObservableQuery.when(!!id).use({ id });
    

    Type Parameters

    • TQuery extends IObservableQueryFor<TDataType>

      The observable query class type.

    • TDataType

      The data type returned by the query.

    • TArguments = object

      Optional argument type for the query.

    Index

    Constructors

    Methods