onInitialData
Function to specify initial data.
You can specify initial data instead of the initial loading state.
override fun onInitialData(): QueryInitialData<User> = {
getInfiniteQueryData(GetUsersKey.Id())?.let {
it.chunkedData.firstOrNull { user -> user.id == userId }
}
}
Content copied to clipboard