© Yiyi Sun 2019
Yiyi SunPractical Application Development with AppRunhttps://doi.org/10.1007/978-1-4842-4069-4_3

3. Model the State

Yiyi Sun1 
(1)
Thornhill, ON, Canada
 

This chapter is a deep dive into the state concept of AppRun. The state is one of three main parts of the AppRun architecture. It plays an important role in the AppRun event lifecycle. It is equivalent to the mode of the Elm architecture. Elm defines the model as the application state. If fact, model and state are two names for the same thing. They are interchangeable in the AppRun architecture. Most of the time, we use the term state in AppRun.

In this chapter, you will learn about the concept of state, how to time-travel through the application state history to develop the undo and ...

Get Practical Application Development with AppRun: Building Reliable, High-Performance Web Apps Using Elm-Inspired Architecture, Event Pub-Sub, and Components now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.