Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(fix): broken links #1405

Merged
merged 3 commits into from
Feb 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/guides/using-dataquery.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ In the query object above, we define a property called `orgUnits` that contains
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.

:::info Static Query
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).
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).
:::

## Step 3: Execute the query
Expand Down Expand Up @@ -215,4 +215,4 @@ Filtering can be applied to every property of the resource you are querying. Alw

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.

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.
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.
Loading