17. Serialize and Hydrate the Data
How to build it
{
user: {...},
cart: {...},
products: {...}
}
“{“user”:{...},”cart”:{...}”products”:{...}“
Create a
string from
the data
22. Competing envs
Challenges and Tradeoffs
● Set environment flags via
webpack
● Use a single source of truth
user session info
● Npm packages must be
isomorphicWhere’s the window object?
24. Testing
Challenges and Tradeoffs
There are always two states.
● Initial load: when the user first
comes to the app.
● SPA lifecycle: any user
interaction after initial load