r/programming • • Jun 09 '16

jQuery 3.0 Released!

https://blog.jquery.com/2016/06/09/jquery-3-0-final-released/
1.1k Upvotes

354 comments sorted by

View all comments

Show parent comments

3

u/1xltP3mgkiF9 Jun 10 '16

Every time you write an app you have some state. Whether it's explicit or implicit and hidden behind a framework. In case of Redux the "state" is a linear list of sequential one single values. Every action modifies the whole state and produces new state. This makes the unit testing trivial and very simple.

1

u/TheWix Jun 10 '16

Right, but I am wondering can you fuck up the state on one page and cause it to break on another page? This is what I am used to with global state.

1

u/1xltP3mgkiF9 Jun 10 '16

No because when you change page all the client side state is removed - when browser rerenders the page.

1

u/TheWix Jun 10 '16

Are you talking a postback? Cause I am referring to a page in the context of a SPA where there is no postback.