Skip to content

Commit afa8ced

Browse files
committed
docs(website): fix typos
1 parent 0e7d525 commit afa8ced

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

packages/overmind-website/api/derive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Derive
22

3-
You can add derived state to your application. You access derived state like any other value, there is not need to call it as a function. The derived value is cached and will only update when any accessed state changes.
3+
You can add derived state to your application. You access derived state like any other value, there is no need to call it as a function. The derived value is cached and will only update when any accessed state changes.
44

55
```marksy
66
h(Example, { name: "api/derive" })

packages/overmind-website/guides/beginner/03_connectingcomponents.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ In this example we are accessing the **isLoading** state. When this component re
1414

1515
When Overmind detects that the **App** component is interested in our **isLoading** state, it is not looking at the value itself, it is looking at the path. The component pointed to **state.isLoading**, which means when a mutation occurs on that path in the state, the component will render again. Since the value is a boolean value this can only happen when **isLoading** is replaced or removed. The same goes for strings and numbers as well. We do not say that we mutate a string, boolean or a number. We mutate the object or array that holds those values.
1616

17-
The story is a bit different if the state value is an object or an array. These values can not only be replaced and removed, they can also mutate themselves. En object can have keys added or removed. An array can have items added, removed and even change order of items. Overmind knows this and will notify components respectively. Let us look at how Overmind treats the following scenarios to get a better understanding.
17+
The story is a bit different if the state value is an object or an array. These values can not only be replaced and removed, they can also mutate themselves. An object can have keys added or removed. An array can have items added, removed and even change order of items. Overmind knows this and will notify components respectively. Let us look at how Overmind treats the following scenarios to get a better understanding.
1818

1919
### Arrays
2020

21-
When we just access en array in a component it will rerender if the array itself is replaced, removed or we do a mutation to it. That would mean we push a new item to it, we splice it or sort it.
21+
When we just access an array in a component it will rerender if the array itself is replaced, removed or we do a mutation to it. That would mean we push a new item to it, we splice it or sort it.
2222

2323
```marksy
2424
h(Example, { name: "guide/connectingcomponents/array_1" })

packages/overmind-website/guides/intermediate/01_managinglists.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ If your list consists of posts, these posts are most likely entities from the se
1111
h(Example, { name: "guide/managinglists/object" })
1212
```
1313

14-
Another benefit from using an object is that you have a direct reference to the entity by using its id. No need to iterate an array to find what you are looking for. So this is a good rule of thumb. If the state you are defining has unique identifiers they should most likely be stored as en object, not an array.
14+
Another benefit from using an object is that you have a direct reference to the entity by using its id. No need to iterate an array to find what you are looking for. So this is a good rule of thumb. If the state you are defining has unique identifiers they should most likely be stored as an object, not an array.
1515

1616
But we still want to use an array when we transform the state into an array. Let us see what we can do about that.
1717

packages/overmind-website/src/components/FrontPage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ h(Example, { name: "frontpage/actions" })
9494
<h2>FUNCTIONAL ACTIONS</h2>
9595
<p>
9696
When pieces of logic becomes complex it is beneficial to write
97-
functional code. Overmind provides and API named{' '}
97+
functional code. Overmind provides an API named{' '}
9898
<strong>operators</strong> which gives you functional power as
9999
simple actions
100100
</p>

0 commit comments

Comments
 (0)