File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
app/src/main/java/guide/graphql/toc/ui Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ import guide.graphql.toc.apolloClient
13
13
14
14
class ChaptersViewModel : ViewModel () {
15
15
16
- val bookId: LiveData <Int > = MutableLiveData (0 )
17
-
18
16
val chapterList: LiveData <Resource <List <ChaptersQuery .Chapter >>> = liveData {
19
17
emit(Resource .loading(null ))
20
18
try {
Original file line number Diff line number Diff line change 1
1
package guide.graphql.toc.ui.sections
2
2
3
3
import android.util.Log
4
- import androidx.lifecycle.LiveData
5
- import androidx.lifecycle.MutableLiveData
6
- import androidx.lifecycle.ViewModel
4
+ import androidx.lifecycle.*
7
5
import com.apollographql.apollo.coroutines.toDeferred
8
6
import com.apollographql.apollo.exception.ApolloException
9
7
import guide.graphql.toc.Resource
You can’t perform that action at this time.
0 commit comments