Stores
Before we begin with anything specific about the Architecture, we will start with the fundamental part that makes the GUI: Svelte Stores.
Stores will automatically update the front-end that subscribes to them. You can even use their syntactic sugar to save you the code bloat and the danger of a memory leak (if you forget to unsubscribe): $store
. They can be accessed globally and have multiple appearances across the front-end of the GUI, as well as being changed by multiple sources.
Usage within the Serpenta GUI
All data that is received, parsed and distributed by an implementation of a Grand Data Distributor is maintained within fsm_store_name. However, Serpenta uses its own interface that extends the svelte fsm_store_name with additional information that is closely tied to the received values.