global variable vs session weak map

What’s the difference between just a variable/struct compared to session weak map?
I mean, why i should use session weak map if i can just declare varibles in my verse device? ¯_(ツ)_/¯

Because you can’t declare variables outside the verse_device its only possible with session weak_maps

1 Like

Thanks so much for such a short and clear explanation!

*I used to have a “game manager” device all the time and never encounter situation i need variable across devices. Thanks to you, i consider changing my approach.

1 Like