Same state for all users

I want a toggle switch to have the same state for all users. What would be the best solution?

  • The only thing I could come up with is, making an interval component. Every time some switches the switch, the value is stored on the server. The interval component than updates the switch state, by reading the state for the server.

Any thoughts and suggestions are more than welcome