From 4f594c21680fedb753dc8ab751928f429d0b38cc Mon Sep 17 00:00:00 2001 From: Seth Trowbridge Date: Sat, 22 Apr 2023 15:02:53 -0400 Subject: [PATCH] fix missing hmr wrapper --- example/app.tsx | 1 - server.tsx | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/app.tsx b/example/app.tsx index 263eb16..2f4abe9 100644 --- a/example/app.tsx +++ b/example/app.tsx @@ -12,7 +12,6 @@ export default ()=>

Title!!

diff --git a/server.tsx b/server.tsx index 7074a81..385f1ff 100644 --- a/server.tsx +++ b/server.tsx @@ -270,7 +270,8 @@ FileListen("${url.pathname}", reloadHandler);`; import {Router, Fetch} from "@eno/iso"; Twind.install(CSS); Fetch.Seed(${JSON.stringify(seed)}); - hydrate( H(Router.Provider, null, H(App)), document.querySelector("#app")); + const hmrWrap = H( ()=>H(App) ); + hydrate( H(Router.Provider, null, hmrWrap), document.querySelector("#app")); `;