Skip to content

Commit 496e0ee

Browse files
committed
fix: render initial UI on first load without REST or mesh connection
The rerender() call was only triggered by state changes. When refreshState() returns early (standalone PWA) and no mesh connection is made, the state never changes so the UI never renders. Call rerender() once at boot to paint the initial state.
1 parent 86dd3ef commit 496e0ee

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/bridges/user/web/frontend/main.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ function rerender(): void {
284284
}
285285

286286
state.subscribe(rerender);
287+
rerender();
287288

288289
// ---------------------------------------------------------------------------
289290
// Boot

0 commit comments

Comments
 (0)