How to use multiple screen but without affecting the data of it

i made a project that is very usefull.but the problem is that it used multiple screens , and when i change screen and come back to the same one, the data got erased. can anu one solve my problem

That's because you didn't store your data in TinyDB.
Global variables get erased when you cross screens.

thank you so much