For temporary variables requiring data manipulation, I use logged in user, which means adding property to users collection, and it can grow rapidly depending how much you want to check things.
For temporary variable during certain screen, I use hidden input field that act as switch to tell it yes or no with change input value, it is useful to make a loading lottie file, something like that.