From a2017fb3303e4e3f3f5c6378a0dc0472f55636e2 Mon Sep 17 00:00:00 2001 From: Sergey Slipchenko Date: Thu, 6 Apr 2023 16:42:06 +0400 Subject: [PATCH] Add missing ipc subscription in ui --- src/accounts.tsx | 5 +++-- src/popup.tsx | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/accounts.tsx b/src/accounts.tsx index 04607ef59..25f0bad05 100644 --- a/src/accounts.tsx +++ b/src/accounts.tsx @@ -9,7 +9,7 @@ import { createRoot } from 'react-dom/client'; import { Provider } from 'react-redux'; import invariant from 'tiny-invariant'; import Browser from 'webextension-polyfill'; -import { onEnd, pipe } from 'wonka'; +import { onEnd, pipe, publish } from 'wonka'; import { createAccountsStore } from './accounts/store/create'; import { createUpdateState } from './accounts/updateState'; @@ -103,7 +103,8 @@ Promise.all([ port = null; Background.init(connect()); }); - }) + }), + publish ); return createIpcCallProxy( diff --git a/src/popup.tsx b/src/popup.tsx index 5a8b1e56c..e15940444 100644 --- a/src/popup.tsx +++ b/src/popup.tsx @@ -9,7 +9,7 @@ import { createRoot } from 'react-dom/client'; import { Provider } from 'react-redux'; import invariant from 'tiny-invariant'; import Browser from 'webextension-polyfill'; -import { onEnd, pipe } from 'wonka'; +import { onEnd, pipe, publish } from 'wonka'; import { SignProvider } from './_core/signContext'; import { UsdPricesProvider } from './_core/usdPrices'; @@ -115,7 +115,8 @@ Promise.all([ port = null; Background.init(connect()); }); - }) + }), + publish ); return createIpcCallProxy(