@wise/dynamic-flow-client 4.20.1 → 4.20.2
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/build/main.js +4 -4
- package/build/main.mjs +4 -4
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -7508,10 +7508,6 @@ function useDynamicFlowCore(props) {
|
|
|
7508
7508
|
rootComponentRef.current.setLoadingState("submitting");
|
|
7509
7509
|
void onAction(__spreadValues({ method: "GET" }, initialAction), null);
|
|
7510
7510
|
}
|
|
7511
|
-
if (initialStep && !initialAction) {
|
|
7512
|
-
createStep(initialStep, null);
|
|
7513
|
-
trackCoreEvent("Step Shown", { isFirstStep: true });
|
|
7514
|
-
}
|
|
7515
7511
|
return () => {
|
|
7516
7512
|
rootComponentRef.current.stop();
|
|
7517
7513
|
};
|
|
@@ -7815,6 +7811,10 @@ function useDynamicFlowCore(props) {
|
|
|
7815
7811
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7816
7812
|
[]
|
|
7817
7813
|
);
|
|
7814
|
+
if (!rootComponentRef.current.hasStep() && initialStep && !initialAction) {
|
|
7815
|
+
createStep(initialStep, null);
|
|
7816
|
+
trackCoreEvent("Step Shown", { isFirstStep: true });
|
|
7817
|
+
}
|
|
7818
7818
|
return { rootComponent: rootComponentRef.current };
|
|
7819
7819
|
}
|
|
7820
7820
|
var useRerender = () => {
|
package/build/main.mjs
CHANGED
|
@@ -7465,10 +7465,6 @@ function useDynamicFlowCore(props) {
|
|
|
7465
7465
|
rootComponentRef.current.setLoadingState("submitting");
|
|
7466
7466
|
void onAction(__spreadValues({ method: "GET" }, initialAction), null);
|
|
7467
7467
|
}
|
|
7468
|
-
if (initialStep && !initialAction) {
|
|
7469
|
-
createStep(initialStep, null);
|
|
7470
|
-
trackCoreEvent("Step Shown", { isFirstStep: true });
|
|
7471
|
-
}
|
|
7472
7468
|
return () => {
|
|
7473
7469
|
rootComponentRef.current.stop();
|
|
7474
7470
|
};
|
|
@@ -7772,6 +7768,10 @@ function useDynamicFlowCore(props) {
|
|
|
7772
7768
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7773
7769
|
[]
|
|
7774
7770
|
);
|
|
7771
|
+
if (!rootComponentRef.current.hasStep() && initialStep && !initialAction) {
|
|
7772
|
+
createStep(initialStep, null);
|
|
7773
|
+
trackCoreEvent("Step Shown", { isFirstStep: true });
|
|
7774
|
+
}
|
|
7775
7775
|
return { rootComponent: rootComponentRef.current };
|
|
7776
7776
|
}
|
|
7777
7777
|
var useRerender = () => {
|