Skip to content

Commit 3d85962

Browse files
christianalfonigitbook-bot
authored andcommitted
GitBook: [master] 44 pages and one asset modified
1 parent fbc1678 commit 3d85962

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed
203 KB
Loading

core/structuring-the-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This data structure is called **the configuration** of your application. If it i
88

99
## Namspaces
1010

11-
![](../.gitbook/assets/image%20%281%29.png)
11+
![](../.gitbook/assets/image%20%281%29%20%281%29.png)
1212

1313
As your application grows you start to separate it into different namespaces. A namespace might be closely related to a page in your application, or maybe it is strictly related to managing some piece of data. It does not matter. You define the namespaces of your application and they probably change over time as well. What matters in the context of Overmind though is that each of these namespaces will contain their own state, actions and effects. So imagine a file structure of:
1414

introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ Our todo has been added and we can even see how the derived state was affected b
331331

332332
## Managing complexity
333333

334-
![](.gitbook/assets/image%20%281%29.png)
334+
![](.gitbook/assets/image%20%281%29%20%281%29.png)
335335

336336
Overmind gives you a basic foundation with its **state**, **actions** and **effects**. As mentioned previously you can split these up into multiple namespaces to organize your code. This manages the complexity of scaling. There is also a complexity of reusability and managing execution over time. The **operators** API allows you to split your logic into many different composable parts. With operators like **debounce**, **waitUntil** etc. you are able to manage execution over time. With the latest addition of **statemachines** you have the possiblity to manage the complexity of state and interaction. What interactions should be allowed in what states. And with state values as **class instances** you are able to co-locate state with logic.
337337

0 commit comments

Comments
 (0)