Skip to content

Commit 29f0952

Browse files
christianalfonigitbook-bot
authored andcommitted
GitBook: [v28] 44 pages modified
1 parent 7338263 commit 29f0952

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Now we will move to a more complex example. Please have a look:
9595

9696
{% embed url="https://codesandbox.io/s/overmind-todomvc-simple-097zs?fontsize=14&hidenavigation=1&theme=dark&view=editor&runonclick=1" %}
9797

98-
We have now separated out the Overmind related logic into its own file, **app.js**. This file creates the Overmind instance and also exports how the components will interact with the state and the actions, the hook called **useApp**. Vue and Angular has other mechanisms conventional to those frameworks where application state and actions can be accessed.
98+
We have now separated out the Overmind related logic into its own file, **app.js**. This file creates the Overmind instance and also exports how the components will interact with the state and the actions, the hook called **useAppState**. Vue and Angular has other mechanisms conventional to those frameworks where application state and actions can be accessed.
9999

100100
## References
101101

@@ -181,7 +181,7 @@ By using the **derived** function exported from Overmind you can insert a functi
181181

182182
## Effects
183183

184-
Now let us move into an even more complex application. Here we have added **effects**. Specifically effects to handle routing, storing todos to local storage and producing unique ids for the todos. We have added an **onInitialize** hook which is a special function Overmind runs when the application starts.
184+
Now let us move into an even more complex application. Here we have added **effects**. Specifically effects to handle routing, storing todos to local storage and producing unique ids for the todos. We have added an **onInitializeOvermind** action which is a special action Overmind runs when the application starts.
185185

186186
{% embed url="https://codesandbox.io/s/overmind-todomvc-2im6p?fontsize=14&hidenavigation=1&theme=dark&view=editor&runonclick=1" %}
187187

0 commit comments

Comments
 (0)