@trackunit/react-core-contexts 0.0.57 → 0.0.58

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.
Files changed (2) hide show
  1. package/index.js +10 -3
  2. package/package.json +2 -1
package/index.js CHANGED
@@ -9,6 +9,7 @@ import { ToastRuntime, EnvironmentRuntime, TokenRuntime, CurrentUserRuntime, Use
9
9
  import * as React from 'react';
10
10
  import { useMemo } from 'react';
11
11
  import { registerTranslations, initializeTranslationsForApp } from '@trackunit/i18n-library-translation';
12
+ import { Spinner } from '@trackunit/react-components';
12
13
  import { BrowserRouter } from 'react-router-dom';
13
14
 
14
15
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -2592,9 +2593,15 @@ const TrackunitProviders = ({
2592
2593
 
2593
2594
  return jsx(TrackunitDataProviders, {
2594
2595
  children: jsx(ToastProviderApp, {
2595
- children: jsx(TrackunitRouter, {
2596
- children: children
2597
- })
2596
+ children: jsx(React.Suspense, Object.assign({
2597
+ fallback: jsx(Spinner, {
2598
+ centered: true
2599
+ })
2600
+ }, {
2601
+ children: jsx(TrackunitRouter, {
2602
+ children: children
2603
+ })
2604
+ }))
2598
2605
  })
2599
2606
  });
2600
2607
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {
@@ -14,6 +14,7 @@
14
14
  "@sentry/browser": "^7.15.0",
15
15
  "apollo-upload-client": "^14.1.3",
16
16
  "@trackunit/i18n-library-translation": "0.0.2",
17
+ "@trackunit/react-components": "0.0.183",
17
18
  "react-router-dom": "6.4.1"
18
19
  },
19
20
  "module": "./index.js",