--

Hi Vidhi, thanks for sharing

The reason the modified code looks like it is emitting 3 onward, because it is using the `it + 1`, which is an auto incremented value. Not because it is cached value.

If we use `_liveDataPost.value + 1` instead, then we can really test if it is cached or not.

--

--

Elye - A One Eye Dev By His Grace
Elye - A One Eye Dev By His Grace

Written by Elye - A One Eye Dev By His Grace

Sharing Software Learning, Life and Faith Journey

Responses (1)