Content deleted Content added
No edit summary |
Jens Meiert (talk | contribs) m Lightly edited intro paragraph |
||
Line 1:
{{More references|date=December 2009}}
'''State management''' refers to the management of the state of one or more [[user interface]] controls such as text [[field (computer science)|field]]s,
This is especially the case when the state of any particular message or form on the page depends on factors outside of the current page, or available throughout several pages. For example, consider a user who is logged in and sees the 'welcome' message on their first visit to any page, but not on subsequent page visits. Does each page manage the state of the user being logged in? That would create too much copy pasting and duplication of code. Instead, you can use a state management pattern for handling messages (this may also include handling error messages and informative messages, along with the described welcome message) and then call this to receive a message as it becomes available.
|