@aehrc/smart-forms-renderer 0.1.0 → 0.2.0
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.
|
@@ -8,4 +8,4 @@ export declare const PrimarySelectableList: import("@emotion/styled").StyledComp
|
|
|
8
8
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
9
9
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
|
|
10
10
|
ref?: import("react").Ref<HTMLUListElement>;
|
|
11
|
-
}, "children" | "sx" |
|
|
11
|
+
}, "children" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "dense" | "disablePadding" | "subheader"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useState,
|
|
1
|
+
import React, { useState, useLayoutEffect, memo, forwardRef, Fragment as Fragment$1, useEffect, useMemo, useCallback, Children, isValidElement, cloneElement } from 'react';
|
|
2
2
|
import { create } from 'zustand';
|
|
3
3
|
import cloneDeep from 'lodash.clonedeep';
|
|
4
4
|
import fhirpath from 'fhirpath';
|
|
@@ -4844,7 +4844,8 @@ function useInitialiseRenderer(questionnaire, questionnaireResponse, additionalV
|
|
|
4844
4844
|
const buildSourceResponse = useQuestionnaireResponseStore((state) => state.buildSourceResponse);
|
|
4845
4845
|
const populateResponse = useQuestionnaireResponseStore((state) => state.populateResponse);
|
|
4846
4846
|
const [loading, setLoading] = useState(true);
|
|
4847
|
-
|
|
4847
|
+
useLayoutEffect(() => {
|
|
4848
|
+
setLoading(true);
|
|
4848
4849
|
buildSourceQuestionnaire(questionnaire, questionnaireResponse, additionalVariables).then(() => {
|
|
4849
4850
|
buildSourceResponse(createQuestionnaireResponse(questionnaire));
|
|
4850
4851
|
if (questionnaireResponse) {
|