@dhis2-ui/organisation-unit-tree 8.12.2 → 8.12.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,7 +41,7 @@ const useRootOrgData = function (ids) {
41
41
  let {
42
42
  isUserDataViewFallback
43
43
  } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
44
- const query = createRootQuery(ids);
44
+ const query = (0, _react.useMemo)(() => createRootQuery(ids), [ids]);
45
45
  const variables = {
46
46
  isUserDataViewFallback
47
47
  };
@@ -28,7 +28,7 @@ export const useRootOrgData = function (ids) {
28
28
  let {
29
29
  isUserDataViewFallback
30
30
  } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
31
- const query = createRootQuery(ids);
31
+ const query = useMemo(() => createRootQuery(ids), [ids]);
32
32
  const variables = {
33
33
  isUserDataViewFallback
34
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/organisation-unit-tree",
3
- "version": "8.12.2",
3
+ "version": "8.12.4",
4
4
  "description": "UI OrganisationUnitTree",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,10 +34,10 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@dhis2/prop-types": "^3.1.2",
37
- "@dhis2-ui/checkbox": "8.12.2",
38
- "@dhis2-ui/loader": "8.12.2",
39
- "@dhis2-ui/node": "8.12.2",
40
- "@dhis2/ui-constants": "8.12.2",
37
+ "@dhis2-ui/checkbox": "8.12.4",
38
+ "@dhis2-ui/loader": "8.12.4",
39
+ "@dhis2-ui/node": "8.12.4",
40
+ "@dhis2/ui-constants": "8.12.4",
41
41
  "classnames": "^2.3.1",
42
42
  "prop-types": "^15.7.2"
43
43
  },
@@ -45,7 +45,7 @@
45
45
  "build"
46
46
  ],
47
47
  "devDependencies": {
48
- "@dhis2/app-runtime": "^3.6.0",
48
+ "@dhis2/app-runtime": "^3.9.0",
49
49
  "@dhis2/d2-i18n": "^1.1.0",
50
50
  "react": "16.13",
51
51
  "react-dom": "16.13",