Skip to content

Commit e5ed59a

Browse files
authored
Merge pull request #1405 from dhis2/docs-update
docs(fix): broken links
2 parents bc5ac97 + d737a26 commit e5ed59a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guides/using-dataquery.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ In the query object above, we define a property called `orgUnits` that contains
5555
We've enabled pagination by setting the `paging` property to `true`. This means that the results will be paginated, and we'll only get a subset of the results. This is the recommended approach as it is lighter on both the server and uses less data. We'll explain pagination at a later step in this guide.
5656

5757
:::info Static Query
58-
In this example, we're using a static query, which means that the query is defined in the component file and doesn't change during the lifecycle of the component. You can also use dynamic queries, where the query is defined based on the state of the component. You can find more information about dynamic queries in the [useDataQuery documentation](/docs/app-runtime/hooks/usedataquery/#dynamic-query).
58+
In this example, we're using a static query, which means that the query is defined in the component file and doesn't change during the lifecycle of the component. You can also use dynamic queries, where the query is defined based on the state of the component. You can find more information about dynamic queries in the [useDataQuery documentation](/docs/app-runtime/hooks/useDataQuery/#dynamic-query).
5959
:::
6060

6161
## Step 3: Execute the query
@@ -215,4 +215,4 @@ Filtering can be applied to every property of the resource you are querying. Alw
215215
216216
In this guide, we walked you through how to use the `useDataQuery` hook in your application to fetch data from the DHIS2 API using a Static Query. We covered how to define a query, execute the query, display the data, apply pagination, and apply filters to the query. By following these steps, you can fetch data from the DHIS2 API in your application with ease. You can now use this knowledge to fetch data from the DHIS2 API in your application and display it to your users, for every API endpoint available in the DHIS2 API.
217217
218-
But besides static queries, you can also use dynamic queries. You can find more information about this in the [useDataQuery documentation](/docs/app-runtime/hooks/usedataquery/#dynamic-query). In the example of dynamic queries, you can see how to use the `useDataQuery` hook with a dynamic query, as well as how `refetch()` is used to fetch the next `page` of data.
218+
But besides static queries, you can also use dynamic queries. You can find more information about this in the [useDataQuery documentation](/docs/app-runtime/hooks/useDataQuery/#dynamic-query). In the example of dynamic queries, you can see how to use the `useDataQuery` hook with a dynamic query, as well as how `refetch()` is used to fetch the next `page` of data.

0 commit comments

Comments
 (0)