So you developed an app that handles offline and online using LoadData and SaveData, and then you come across this weird behaviour where screens are cleared out. This is exactly what happened to me ...
SharePains by Pieter Veenstra on MSN

How to use IfError in Power Apps

IfError is a function in Power Apps to handle expected and unexpected errors in your code. There are however, a few issues you may run into if you don't exactly know how this function works.