Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #73 from shopware/next-25822/improve-documentation…
Browse files Browse the repository at this point in the history
…-about-data-get

NEXT-25822 - improve documentation about data get
  • Loading branch information
seggewiss committed May 15, 2023
2 parents bf32324 + 24d0271 commit 1872484
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/docs/guide/2_api-reference/data/get.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
With `data.get` you can receive datasets from the Shopware administration.
More information on how to find the unique identifiers can be found in [this guide](../../5_internals/datahandling.md).

Compared to data.subscribe, data.get only gives you the current state of the data. If the data is not available yet,
such as when opening a page, you won't receive any data. In these cases, it's better to subscribe to data changes instead.

#### Usage:
```ts
data.get(
Expand Down

0 comments on commit 1872484

Please sign in to comment.