aboutsummaryrefslogtreecommitdiffstats
path: root/packages/renderer/src/index.tsx
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-04-05 02:18:56 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-05-16 00:55:00 +0200
commit7cea467cab1d72869bd1dcd6a430540871a0bdd2 (patch)
tree97a3da2a9067d556992b9f046684c3113075bee4 /packages/renderer/src/index.tsx
parentbuild: Properly shut down watch mode (diff)
downloadsophie-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.tsx2
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
47const { sophieRenderer: ipc } = window; 47const { sophieRenderer: ipc } = window;
48 48
49const store = createAndConnectRendererStore(ipc); 49const store = await createAndConnectRendererStore(ipc);
50 50
51if (isDevelopment) { 51if (isDevelopment) {
52 exposeToReduxDevtools(store).catch((error) => { 52 exposeToReduxDevtools(store).catch((error) => {