Documentation about (global) state and variables in general? #80
Replies: 3 comments
-
Maybe it would also be helpful to explain when/where global variables are agreeable or not. I naively set a variable I am sure it is my lack of understanding of the control flow in Streamsync. |
Beta Was this translation helpful? Give feedback.
-
Global variables are reset to its original definition when the programme is re-run. For example, when clicking "Save and Run" or saving the code (which triggers a re-run). A section on Application State is available in the documentation site. Have you read that one? There are no predefined nor expected entries in state, you just add the ones you need. |
Beta Was this translation helpful? Give feedback.
-
Mea culpa. I did read that section indeed and find it very helpful. There are various other references to methods on state and I mixed up state variables and state methods. (e.g., |
Beta Was this translation helpful? Give feedback.
-
I found references to attributes in the global state dictionary in various parts of the documentation. Would it be possible to have a section in the documentation that explains how this works and what entries are "pre-defined/expected?" It would be nice to have a single place where also things like "name starts with an
_
likestate["_my_private_state_var"]
could be found in one place.Beta Was this translation helpful? Give feedback.
All reactions