How can I make sure that a variable is only initialized one time instead of every time the screen is loaded. I have initialized a variable to a number and it kind of resets every time the screen opens. With one time I mean just once, not when I close the app and start it, I don't want it to initialize again.
Use the tinydb to set the variable on startup
2 Likes
Thank you so much I was looking all day for something like this and this helped a lot!