From 24d02713932ac1d54d144f38bc3c5e2611012808 Mon Sep 17 00:00:00 2001 From: Jannis Leifeld Date: Mon, 15 May 2023 09:49:44 +0200 Subject: [PATCH] NEXT-25822 - improve documenation about data get --- docs/docs/guide/2_api-reference/data/get.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/docs/guide/2_api-reference/data/get.md b/docs/docs/guide/2_api-reference/data/get.md index bed7f266..641c1b9a 100644 --- a/docs/docs/guide/2_api-reference/data/get.md +++ b/docs/docs/guide/2_api-reference/data/get.md @@ -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(