dce-reactkit 3.6.13 → 3.6.14

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/cjs/index.js CHANGED
@@ -1010,7 +1010,7 @@ const showFatalError = (error, errorTitle = 'An Error Occurred') => __awaiter(vo
1010
1010
  setFatalErrorTitle(errorTitle);
1011
1011
  });
1012
1012
  /**
1013
- * Add a handler for when a fatal error occurs
1013
+ * Add a handler for when a fatal error occurs (or when a session expiry occurs)
1014
1014
  * @author Gabe Abrams
1015
1015
  */
1016
1016
  const addFatalErrorHandler = (handler) => {
@@ -1026,6 +1026,15 @@ let setSessionHasExpired;
1026
1026
  * @author Gabe Abrams
1027
1027
  */
1028
1028
  const showSessionExpiredMessage = () => __awaiter(void 0, void 0, void 0, function* () {
1029
+ // Call all fatal error listeners
1030
+ try {
1031
+ fatalErrorHandlers.forEach((handler) => {
1032
+ handler();
1033
+ });
1034
+ }
1035
+ catch (err) {
1036
+ // Ignore listener errors
1037
+ }
1029
1038
  // Wait for helper to exist
1030
1039
  yield waitForHelper(() => {
1031
1040
  return !!setSessionHasExpired;