@wise/dynamic-flow-client 3.28.8-experimental-2b1f107 → 3.28.8-experimental-44c10c9

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.mjs CHANGED
@@ -13591,7 +13591,14 @@ function useDynamicFlowCore(props) {
13591
13591
  const onBack = (action) => {
13592
13592
  if (action) {
13593
13593
  return () => {
13594
- void onAction(__spreadProps(__spreadValues({}, action), { skipValidation: true }));
13594
+ onAction(__spreadProps(__spreadValues({}, action), { skipValidation: true })).then(() => {
13595
+ setStepStack((value) => {
13596
+ const newStepStack = [...value.slice(0, -1), ...value.slice(-1)];
13597
+ stepComponentRef.current = newStepStack[newStepStack.length - 1];
13598
+ return newStepStack;
13599
+ });
13600
+ }).catch(() => {
13601
+ });
13595
13602
  };
13596
13603
  }
13597
13604
  if (nativeBack) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "3.28.8-experimental-2b1f107",
3
+ "version": "3.28.8-experimental-44c10c9",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.min.js",