Closed Strate closed 5 years ago
Hey! It would be useful to have hasData: boolean property on Document. It behaves as:
hasData: boolean
When Document have no data, it resolves to false
false
When Document have any data available, it resolves to true.
true
It is not same as existing isLoading, because it is not become false when new ref set, for example.
isLoading
Hey Artur, yes this is a really good idea. I will add it in the next release which I'm working on right now. Cheers
I've added hasData, it's in the just released v1.1.0 release. cheers
hasData
Hey! It would be useful to have
hasData: boolean
property on Document. It behaves as:When Document have no data, it resolves to
false
When Document have any data available, it resolves to
true
.It is not same as existing
isLoading
, because it is not becomefalse
when new ref set, for example.