rememberQueryIf
fun <T, V> rememberQueryIf(value: V, keyFactory: (value: V) -> QueryKey<T>?, config: QueryConfig = QueryConfig.Default, client: QueryClient = LocalQueryClient.current): QueryObject<T>?
fun <T, U, V> rememberQueryIf(value: V, keyFactory: (value: V) -> QueryKey<T>?, select: (T) -> U, config: QueryConfig = QueryConfig.Default, client: QueryClient = LocalQueryClient.current): QueryObject<U>?
Provides a conditional rememberQuery.
Calls rememberQuery only if keyFactory returns a QueryKey from value.
See also
fun <T1, T2, R, V> rememberQueryIf(value: V, keyPairFactory: (value: V) -> Pair<QueryKey<T1>, QueryKey<T2>>?, transform: (T1, T2) -> R, config: QueryConfig = QueryConfig.Default, client: QueryClient = LocalQueryClient.current): QueryObject<R>?
Provides a conditional rememberQuery.
Calls rememberQuery only if keyPairFactory returns a Pair of QueryKeys from value.
See also
fun <T1, T2, T3, R, V> rememberQueryIf(value: V, keyTripleFactory: (value: V) -> Triple<QueryKey<T1>, QueryKey<T2>, QueryKey<T3>>?, transform: (T1, T2, T3) -> R, config: QueryConfig = QueryConfig.Default, client: QueryClient = LocalQueryClient.current): QueryObject<R>?
Provides a conditional rememberQuery.
Calls rememberQuery only if keyTripleFactory returns a Triple of QueryKeys from value.
See also
fun <T, R, V> rememberQueryIf(value: V, keyListFactory: (value: V) -> List<QueryKey<T>>?, transform: (List<T>) -> R, config: QueryConfig = QueryConfig.Default, client: QueryClient = LocalQueryClient.current): QueryObject<R>?
Provides a conditional rememberQuery.
Calls rememberQuery only if keyListFactory returns a List of QueryKeys from value.