The query class type.
The data type returned by the query.
Optional argument type for the query.
Initializes a new instance of QueryWhen.
The query class type.
The data type returned by the query.
Optional argument type for the query.
The query constructor.
Whether the query should be executed.
Calls the underlying useQuery hook, conditionally executing the query.
Optionalargs: TArgumentsOptional arguments for the query.
Optionalsorting: anyOptional sorting for the query.
Tuple of QueryResultWithState and hook controls.
Calls the underlying useSuspenseQuery hook, conditionally executing the query. When disabled, returns an empty result without suspending the component.
Optionalargs: TArgumentsOptional arguments for the query.
Optionalsorting: anyOptional sorting for the query.
Tuple of QueryResultWithState and hook controls.
Calls the underlying useSuspenseQueryWithPaging hook, conditionally executing the query. When disabled, returns an empty result without suspending the component.
Number of items per page.
Optionalargs: TArgumentsOptional arguments for the query.
Optionalsorting: anyOptional sorting for the query.
Tuple of QueryResultWithState and hook controls.
Calls the underlying useQueryWithPaging hook, conditionally executing the query.
Number of items per page.
Optionalargs: TArgumentsOptional arguments for the query.
Optionalsorting: anyOptional sorting for the query.
Tuple of QueryResultWithState and hook controls.
Represents a conditional query binding that conditionally executes the query hooks 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 query class: