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/package.json
CHANGED
|
@@ -56,15 +56,15 @@ let storedSendRequest: SendRequestFunction;
|
|
|
56
56
|
* @returns sendRequest function
|
|
57
57
|
*/
|
|
58
58
|
export const getSendRequest = async () => {
|
|
59
|
-
//
|
|
59
|
+
// Track timeout
|
|
60
60
|
let timedOut = false;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
61
|
+
(async () => {
|
|
62
|
+
await waitMs(5000);
|
|
63
|
+
timedOut = true;
|
|
64
|
+
})(),
|
|
65
|
+
|
|
66
|
+
// Wait for initialization
|
|
67
|
+
await initialized;
|
|
68
68
|
|
|
69
69
|
// Error if no send request function
|
|
70
70
|
if (timedOut) {
|