@elliemae/pui-app-sdk 3.4.0 → 3.4.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.
@@ -67,7 +67,21 @@ const AppRouter = (_a) => {
67
67
  action: history.action,
68
68
  location: history.location
69
69
  });
70
- (0, import_react.useLayoutEffect)(() => history.listen(setState), [history]);
70
+ (0, import_react.useLayoutEffect)(() => {
71
+ const unlisten = history.listen((...args) => {
72
+ if (args.length === 2) {
73
+ setState({
74
+ location: args[0],
75
+ action: args[1]
76
+ });
77
+ } else {
78
+ setState(args[0]);
79
+ }
80
+ });
81
+ return () => {
82
+ unlisten();
83
+ };
84
+ }, [history]);
71
85
  return /* @__PURE__ */ React.createElement(import_react_router_dom.Router, __spreadProps(__spreadValues({}, props), {
72
86
  location: state.location,
73
87
  navigationType: state.action,
@@ -38,7 +38,21 @@ const AppRouter = (_a) => {
38
38
  action: history.action,
39
39
  location: history.location
40
40
  });
41
- useLayoutEffect(() => history.listen(setState), [history]);
41
+ useLayoutEffect(() => {
42
+ const unlisten = history.listen((...args) => {
43
+ if (args.length === 2) {
44
+ setState({
45
+ location: args[0],
46
+ action: args[1]
47
+ });
48
+ } else {
49
+ setState(args[0]);
50
+ }
51
+ });
52
+ return () => {
53
+ unlisten();
54
+ };
55
+ }, [history]);
42
56
  return /* @__PURE__ */ React.createElement(Router, __spreadProps(__spreadValues({}, props), {
43
57
  location: state.location,
44
58
  navigationType: state.action,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-app-sdk",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "description": "ICE MT UI Platform Application SDK ",
5
5
  "sideEffects": [
6
6
  "*.css",
@@ -142,7 +142,7 @@
142
142
  "@elliemae/em-ssf-guest": "~1.11.1",
143
143
  "@elliemae/pui-cli": "~6.9.0",
144
144
  "@elliemae/pui-diagnostics": "~2.7.3",
145
- "@elliemae/pui-e2e-test-sdk": "~7.0.0",
145
+ "@elliemae/pui-e2e-test-sdk": "~7.1.0",
146
146
  "@elliemae/pui-micro-frontend-base": "~1.10.1",
147
147
  "@elliemae/pui-theme": "~2.4.1",
148
148
  "@elliemae/pui-user-monitoring": "~1.14.0"