Skip to content

Commit 45101b5

Browse files
Write shorter sentences
1 parent 60e03ed commit 45101b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

15/umbraco-cms/customizing/foundation/working-with-data/repositories.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ const repositoryManifest = {
2020
};
2121
```
2222

23-
With a repository we can have different data sources depending on the state of the app. It can be from a server, an offline database, a store, a Signal-R connection, etc. That means that the consumer will not have to be concerned how to access the data, add or remove items from a collection of items, etc. This means we get a loose connection between the consumer and the data-storing procedures hiding all complex implementation.
23+
With a repository we can have different data sources depending on the state of the app. It can be from a server, an offline database, a store, a Signal-R connection, etc. That means that the consumer will not have to be concerned how to access the data, add or remove items from a collection, etc. This means we get a loose connection between the consumer and the data-storing procedures hiding all complex implementation.
2424

2525
### Data flow with a repository <a href="#data-flow-with-a-repository" id="data-flow-with-a-repository"></a>
2626

2727
<figure><img src="../../../.gitbook/assets/data-flow.svg" alt=""><figcaption><p>Data flow</p></figcaption></figure>
2828

29-
A repository has to be instanced in the context where it is used. It should take a host element as part of the constructor, so any contexts consumed in the repository (notifications, modals, etc.) get rendered in the correct DOM context.
29+
A repository has to be instanced in the context where it is used. It should take a host element as part of the constructor. This ensures that any contexts consumed in the repository, like notifications or modals, are rendered in the correct DOM context.
3030

3131
A repository can be called directly from an element, but will often be instantiated in a context, like the Workspace Context.

0 commit comments

Comments
 (0)