Currently in my Meteor app, I have a boolean variable at the top of my layout file that keeps track of wether the user has closed the menu in desktop view.
var closedMenuInDesktopView = false
Also in another point in my app I use a boolean variable at top to keep track of wether the app is currently saving or not.
var saving = false
Everything in my app is working ok but I notice in the example Meteor apps, they use the Session to keep track of state variables within the app. Is it better to do it this way instead of putting javascript variables at the top of the file that can hold value?