← Back to context

Comment by nfw2

4 years ago

State is a pretty loaded word, but what I meant more specifically is complex application state, and by that I mean the ephemeral state that manages a user's usage of the application.

For example, in the real estate use case, there may be, all on the same page:

- a table of listings and grid of listings that can be toggled between

- a map that can be displayed alongside the table with all the listings plotted

- dynamic updates on the map that highlight listing when it is hovered on the table

- a detail modal that displays whenever any listing on the table or map is clicked

- pagination that can controlled from either the modal or the table

- selection state for each row on the table and a bulk action bar that conditionally appears when the row is selected.

- filters and search that need to work quickly and not disrupt the user experience

None of these things are particularly unusual or groundbreaking, but trying to control all these stuff via server-rendering or jquery would be a huge mess and potentially a jarring UX.