# compose


03/08/2022, 5:06 PM
about LazyPagingItems with
I'm losing the loaded data when the last load State is Error even if I cache the flow to the Viewmodel. Let's say data is already rendered, I refresh and let it fail (turn off wifi). I go to the next screen. Now when coming back, previously loaded data is now gone and the latest loads state is error. If the latest loadstate is not error then the data is retained as I wanted. My requirement is to not clear the data if it failed to refresh. but my issue is that I lose it when navigating to another screen and going back. Is it a bug or is this expected? Also not sure if this is a Compose or Paging issue.
Paging updated today, praying it will somehow fix these.