diff options
author | 2022-04-05 02:18:56 +0200 | |
---|---|---|
committer | 2022-05-16 00:55:00 +0200 | |
commit | 7cea467cab1d72869bd1dcd6a430540871a0bdd2 (patch) | |
tree | 97a3da2a9067d556992b9f046684c3113075bee4 /packages/renderer/src/index.tsx | |
parent | build: Properly shut down watch mode (diff) | |
download | sophie-7cea467cab1d72869bd1dcd6a430540871a0bdd2.tar.gz sophie-7cea467cab1d72869bd1dcd6a430540871a0bdd2.tar.zst sophie-7cea467cab1d72869bd1dcd6a430540871a0bdd2.zip |
fix(renderer): Consistent store initialization
Make sure the RendererStore is in a state consistent with the MainStore
before attempting to initialize the application.
This avoids, e.g., race conditions when trying to load the default
locale spuriously before loading the actually selected locale.
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'packages/renderer/src/index.tsx')
-rw-r--r-- | packages/renderer/src/index.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/renderer/src/index.tsx b/packages/renderer/src/index.tsx index 60ef714..a408c4d 100644 --- a/packages/renderer/src/index.tsx +++ b/packages/renderer/src/index.tsx | |||
@@ -46,7 +46,7 @@ if (isDevelopment) { | |||
46 | 46 | ||
47 | const { sophieRenderer: ipc } = window; | 47 | const { sophieRenderer: ipc } = window; |
48 | 48 | ||
49 | const store = createAndConnectRendererStore(ipc); | 49 | const store = await createAndConnectRendererStore(ipc); |
50 | 50 | ||
51 | if (isDevelopment) { | 51 | if (isDevelopment) { |
52 | exposeToReduxDevtools(store).catch((error) => { | 52 | exposeToReduxDevtools(store).catch((error) => { |