G
Size: a a a
G
G
G
И
G
И
G
G
G
There are various categories of state, but every type of state can fall into one of two buckets:
1. Server Cache - State that's actually stored on the server and we store in the client for quick-access (like user data).
2. UI State - State that's only useful in the UI for controlling the interactive parts of our app (like modal isOpen state).
We make a mistake when we combine the two. Server cache has inherently different problems from UI state and therefore needs to be managed differently. If you embrace the fact that what you have is not actually state at all but is instead a cache of state, then you can start thinking about it correctly and therefore managing it correctly.
И
G
И
There are various categories of state, but every type of state can fall into one of two buckets:
1. Server Cache - State that's actually stored on the server and we store in the client for quick-access (like user data).
2. UI State - State that's only useful in the UI for controlling the interactive parts of our app (like modal isOpen state).
We make a mistake when we combine the two. Server cache has inherently different problems from UI state and therefore needs to be managed differently. If you embrace the fact that what you have is not actually state at all but is instead a cache of state, then you can start thinking about it correctly and therefore managing it correctly.
G
G
G
G
G
G
И
G