@elliemae/pui-app-sdk 5.24.0 → 5.24.1

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.
@@ -46,7 +46,14 @@ const Div = import_styled_components.default.div`
46
46
  overflow: hidden;
47
47
  `;
48
48
  const useAppRenderer = (props) => {
49
- const { id, history, onLoadComplete, onUnloadComplete, containerId } = props;
49
+ const {
50
+ id,
51
+ history,
52
+ homeRoute,
53
+ onLoadComplete,
54
+ onUnloadComplete,
55
+ containerId
56
+ } = props;
50
57
  const dispatch = (0, import_react_redux.useDispatch)();
51
58
  (0, import_react.useLayoutEffect)(() => {
52
59
  let isMounted = true;
@@ -64,7 +71,8 @@ const useAppRenderer = (props) => {
64
71
  instanceId = await appBridge.openApp({
65
72
  id,
66
73
  frameOptions: { containerId },
67
- history
74
+ history,
75
+ homeRoute
68
76
  });
69
77
  setTimeout(() => {
70
78
  try {
@@ -102,7 +110,15 @@ const useAppRenderer = (props) => {
102
110
  });
103
111
  }
104
112
  };
105
- }, [containerId, dispatch, history, id, onLoadComplete, onUnloadComplete]);
113
+ }, [
114
+ containerId,
115
+ dispatch,
116
+ history,
117
+ homeRoute,
118
+ id,
119
+ onLoadComplete,
120
+ onUnloadComplete
121
+ ]);
106
122
  };
107
123
  const GuestMicroApp = (0, import_react.memo)(
108
124
  (props) => {
@@ -13,7 +13,14 @@ const Div = styled.div`
13
13
  overflow: hidden;
14
14
  `;
15
15
  const useAppRenderer = (props) => {
16
- const { id, history, onLoadComplete, onUnloadComplete, containerId } = props;
16
+ const {
17
+ id,
18
+ history,
19
+ homeRoute,
20
+ onLoadComplete,
21
+ onUnloadComplete,
22
+ containerId
23
+ } = props;
17
24
  const dispatch = useDispatch();
18
25
  useLayoutEffect(() => {
19
26
  let isMounted = true;
@@ -31,7 +38,8 @@ const useAppRenderer = (props) => {
31
38
  instanceId = await appBridge.openApp({
32
39
  id,
33
40
  frameOptions: { containerId },
34
- history
41
+ history,
42
+ homeRoute
35
43
  });
36
44
  setTimeout(() => {
37
45
  try {
@@ -69,7 +77,15 @@ const useAppRenderer = (props) => {
69
77
  });
70
78
  }
71
79
  };
72
- }, [containerId, dispatch, history, id, onLoadComplete, onUnloadComplete]);
80
+ }, [
81
+ containerId,
82
+ dispatch,
83
+ history,
84
+ homeRoute,
85
+ id,
86
+ onLoadComplete,
87
+ onUnloadComplete
88
+ ]);
73
89
  };
74
90
  const GuestMicroApp = memo(
75
91
  (props) => {