Skip to content

Commit 7b2ba0c

Browse files
committed
Update README.md
1 parent 826a029 commit 7b2ba0c

File tree

1 file changed

+1
-1
lines changed
  • 17/umbraco-cms/customizing/foundation/repositories

1 file changed

+1
-1
lines changed

17/umbraco-cms/customizing/foundation/repositories/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The data flow when using a repository can be illustrated as follows:
3131

3232
Often, you will find that data is already available and observable in a [context](./contexts/README.md). In that case, subscribing to the context [state](./states.md) will be the right approach to take. This way, you will receive all runtime updates that occur to the data throughout the session.
3333

34-
When a context with the appropriate data state is not available, reaching for a repository will ensure access to the data no matter the application state.
34+
If the needed data isn’t available in a context, use a repository to request the data. This will give you that correct data no matter the current application state.
3535

3636
In the example below, we instantiate the `UmbDocumentItemRepository` directly in a custom element to request Document Item data by its unique key.
3737

0 commit comments

Comments
 (0)