dce-reactkit 3.3.2 → 3.3.3-beta.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/dist/cjs/index.js +7 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +7 -8
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/client/initClient.tsx +8 -8
package/dist/esm/index.js
CHANGED
|
@@ -552,15 +552,14 @@ let storedSendRequest;
|
|
|
552
552
|
* @returns sendRequest function
|
|
553
553
|
*/
|
|
554
554
|
const getSendRequest = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
555
|
-
//
|
|
555
|
+
// Track timeout
|
|
556
556
|
let timedOut = false;
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
initialized
|
|
563
|
-
]);
|
|
557
|
+
(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
558
|
+
yield waitMs(5000);
|
|
559
|
+
timedOut = true;
|
|
560
|
+
}))(),
|
|
561
|
+
// Wait for initialization
|
|
562
|
+
yield initialized;
|
|
564
563
|
// Error if no send request function
|
|
565
564
|
if (timedOut) {
|
|
566
565
|
showFatalError(new ErrorWithCode('Could not send a request because the request needed to be sent before dce-reactkit was properly initialized. Perhaps dce-reactkit was not initialized with initClient.', ReactKitErrorCode$1.NoCACCLSendRequestFunction));
|