diff options
author | 2021-12-24 01:36:20 +0100 | |
---|---|---|
committer | 2021-12-24 01:36:20 +0100 | |
commit | cf3ec7fc396125ed452c553b34ae2737329fc61d (patch) | |
tree | 6d2fdbb40b9c9b1d32168d1ccb2372b5602f1968 /packages/renderer/src/index.tsx | |
parent | feat: Set up partition persistence (diff) | |
download | sophie-cf3ec7fc396125ed452c553b34ae2737329fc61d.tar.gz sophie-cf3ec7fc396125ed452c553b34ae2737329fc61d.tar.zst sophie-cf3ec7fc396125ed452c553b34ae2737329fc61d.zip |
feat: Service to main process communication
Diffstat (limited to 'packages/renderer/src/index.tsx')
-rw-r--r-- | packages/renderer/src/index.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/renderer/src/index.tsx b/packages/renderer/src/index.tsx index 90cba2c..0919b93 100644 --- a/packages/renderer/src/index.tsx +++ b/packages/renderer/src/index.tsx | |||
@@ -29,11 +29,15 @@ import { render } from 'react-dom'; | |||
29 | import { App } from './components/App'; | 29 | import { App } from './components/App'; |
30 | import { StoreProvider } from './components/StoreProvider'; | 30 | import { StoreProvider } from './components/StoreProvider'; |
31 | import { ThemeProvider } from './components/ThemeProvider'; | 31 | import { ThemeProvider } from './components/ThemeProvider'; |
32 | import { exposeToReduxDevtools } from './devTools'; | 32 | import { exposeToReduxDevtools, hotReloadServices } from './devTools'; |
33 | import { createAndConnectRootStore } from './stores/RootStore'; | 33 | import { createAndConnectRootStore } from './stores/RootStore'; |
34 | 34 | ||
35 | const isDevelopment = import.meta.env.MODE === 'development'; | 35 | const isDevelopment = import.meta.env.MODE === 'development'; |
36 | 36 | ||
37 | if (isDevelopment) { | ||
38 | hotReloadServices(); | ||
39 | } | ||
40 | |||
37 | const store = createAndConnectRootStore(window.sophieRenderer); | 41 | const store = createAndConnectRootStore(window.sophieRenderer); |
38 | 42 | ||
39 | if (isDevelopment) { | 43 | if (isDevelopment) { |