@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.
package/dist/index.js
CHANGED
|
@@ -4889,7 +4889,8 @@ function useInitialiseRenderer(questionnaire, questionnaireResponse, additionalV
|
|
|
4889
4889
|
const buildSourceResponse = useQuestionnaireResponseStore((state) => state.buildSourceResponse);
|
|
4890
4890
|
const populateResponse = useQuestionnaireResponseStore((state) => state.populateResponse);
|
|
4891
4891
|
const [loading, setLoading] = React.useState(true);
|
|
4892
|
-
React.
|
|
4892
|
+
React.useLayoutEffect(() => {
|
|
4893
|
+
setLoading(true);
|
|
4893
4894
|
buildSourceQuestionnaire(questionnaire, questionnaireResponse, additionalVariables).then(() => {
|
|
4894
4895
|
buildSourceResponse(createQuestionnaireResponse(questionnaire));
|
|
4895
4896
|
if (questionnaireResponse) {
|