From 6ca4dee75d10ce87142f13d083e08fc63bddfa30 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Thu, 6 Apr 2023 16:01:30 -0500 Subject: [PATCH] don't block, use suspense --- src/components/App.tsx | 2 +- src/components/BalanceBox.tsx | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 2fda47e..569dbe3 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -37,7 +37,7 @@ export default function App() {
Activity
- + {() =>

- - {/* TODO: no-non-null-asssertion but type narrowing just isn't working */} - {prettyPrintBalance(balance()!)} SAT - + + + {/* TODO: no-non-null-asssertion but type narrowing just isn't working */} + {prettyPrintBalance(balance()!)} SAT + +