
main.react.query.infiniteQueryObserver.core.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
@file:JsModule("react-query")
@file:JsNonModule
@file:Suppress(
"UNUSED_TYPEALIAS_PARAMETER",
"NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE",
)
package react.query
typealias InfiniteQueryObserverListener = (result: InfiniteQueryObserverResult) -> Unit
open external class InfiniteQueryObserver(
client: QueryClient,
options: InfiniteQueryObserverOptions,
) : QueryObserver, InfiniteData, QueryKey> {
open var subscribe: (listener: InfiniteQueryObserverListener?) -> () -> Unit
open var getCurrentResult: () -> InfiniteQueryObserverResult
protected open var fetch: (fetchOptions: ObserverFetchOptions?) -> kotlin.js.Promise>
override fun bindMethods()
open fun setOptions(options: InfiniteQueryObserverOptions = definedExternally)
open fun getOptimisticResult(options: InfiniteQueryObserverOptions): InfiniteQueryObserverResult
open fun fetchNextPage(options: FetchNextPageOptions = definedExternally): kotlin.js.Promise>
open fun fetchPreviousPage(options: FetchPreviousPageOptions = definedExternally): kotlin.js.Promise>
protected open fun createResult(
query: Query, *>,
options: InfiniteQueryObserverOptions,
): InfiniteQueryObserverResult
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy