```val bookmarks = repository.getAllBookmarkedArti...
# android
f
Copy code
val bookmarks = repository.getAllBookmarkedArticles()
        .stateIn(viewModelScope, SharingStarted.Lazily, emptyList())
Is it bad to initialize with
emptyList()
? This is data from Room, hence it has no loading state
o
Nope, it's great. What else would you want to have there?
f
I thought maybe we should use null, but then we have to handle nullability
o
Exactly, null brings only hassle, I avoid it whenever I can.
f
ok thank you
d
I sometimes use
null
if I want to differentiate between loading and empty.
f
I heard that before, thank you