rememberInfiniteQuery

fun <T, S> rememberInfiniteQuery(key: InfiniteQueryKey<T, S>, config: InfiniteQueryConfig = InfiniteQueryConfig.Default, client: QueryClient = LocalQueryClient.current): InfiniteQueryObject<QueryChunks<T, S>, S>

Remember a InfiniteQueryObject and subscribes to the query state of key.

Return

A InfiniteQueryObject each the query state changed.

Parameters

T

Type of data to retrieve.

S

Type of parameter.

key

The InfiniteQueryKey for managing query associated with id.

config

The configuration for the query. By default, it uses the InfiniteQueryConfig.Default.

client

The QueryClient to resolve key. By default, it uses the LocalQueryClient.


fun <T, S, U> rememberInfiniteQuery(key: InfiniteQueryKey<T, S>, select: (QueryChunks<T, S>) -> U, config: InfiniteQueryConfig = InfiniteQueryConfig.Default, client: QueryClient = LocalQueryClient.current): InfiniteQueryObject<U, S>

Remember a InfiniteQueryObject and subscribes to the query state of key.

Return

A InfiniteQueryObject with selected data each the query state changed.

Parameters

T

Type of data to retrieve.

S

Type of parameter.

key

The InfiniteQueryKey for managing query associated with id.

select

A function to select data from QueryChunks.

config

The configuration for the query. By default, it uses the InfiniteQueryConfig.Default.

client

The QueryClient to resolve key. By default, it uses the LocalQueryClient.