DHIS2 Application Runtime
A singular runtime dependency for applications on the DHIS2 platform
Installation
yarn add @dhis2/app-runtime
NB Please ensure that all webpack bundles reference the same Context, you can do this by adding @dhis2/app-runtime
to peerDependencies
(rather than dependencies
) and webpack externals
for library builds. Top-level web applications should be able to include the dependency directly
This library uses the official React Context API (introduced in 16.3) and React Hooks (introduced in 16.8), so React >= 16.8 is required to use it
Usage
The @dhis2/app-runtime
library is a thin wrapper around application services. See each service's README for usage instructions. Currently, the included services are:
- data - declarative data fetching for DHIS2 api queries