Best way to manage state? #383
-
|
The documentation didn't really make this clear - what's the recommended way to manage state in Ignis? Variables, Services, something else? For context on my specific usecase: I want my media widget to keep track of the "currently selected" player (something akin to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
If you need the |
Beta Was this translation helpful? Give feedback.
If you need the
notifysignal to emit when the value changes, go withVariable. Otherwise, you can store it either as a global variable or as a class attribute (if you use classes).