#global variable in qwik

4 messages · Page 1 of 1 (latest)

rigid drum
#

What should I use to declare state globally? for example, I have a variable isActive as admin, I want to change the value to true then, all users who access my website will automatically get the isActive value as true what should I use? I don't want the user to continuously query the database just to retrieve that value. The solution I thought of was using static in the class or creating static variables. But is there another solution from Qwik?

quiet rock
rigid drum
quiet rock