File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ import AutomationCreatePage from '../pages/automations/create'
72
72
import AutomationPage from '../pages/automations/[automationId]'
73
73
import { BetaRegistrationProvider } from '../lib/stores/beta'
74
74
import GithubSourceCallbackPage from './sources/GithubSourceCallbackPage'
75
+ import Spinner from '../../design/components/atoms/Spinner'
75
76
76
77
const CombinedProvider = combineProviders (
77
78
PreviewStyleProvider ,
@@ -174,7 +175,8 @@ const Router = () => {
174
175
. then ( ( globalData ) => {
175
176
initGlobalData ( globalData )
176
177
} )
177
- . catch ( ( _err ) => {
178
+ . catch ( ( error ) => {
179
+ console . warn ( error )
178
180
initGlobalData ( {
179
181
teams : [ ] ,
180
182
invites : [ ] ,
@@ -246,6 +248,20 @@ const Router = () => {
246
248
}
247
249
} , [ pathname , search ] )
248
250
251
+ if ( ! initialized ) {
252
+ return (
253
+ < PreferencesProvider >
254
+ < GlobalDataProvider >
255
+ < SettingsProvider >
256
+ < V2ThemeProvider >
257
+ < Spinner />
258
+ </ V2ThemeProvider >
259
+ </ SettingsProvider >
260
+ </ GlobalDataProvider >
261
+ </ PreferencesProvider >
262
+ )
263
+ }
264
+
249
265
if ( pageInfo == null ) {
250
266
if ( isApplicationPagePathname ( pathname ) ) {
251
267
return (
You can’t perform that action at this time.
0 commit comments