fix missing hmr wrapper

This commit is contained in:
Seth Trowbridge 2023-04-22 15:02:53 -04:00
parent 8b21aba029
commit 4f594c2168
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,6 @@ export default ()=>
<nav class="p-4">
<a class="text-red-500" href="/">Home</a>
<a href="/about">About</a>
<a href="/lol">lol????</a>
</nav>
<h1 class="my-2 font(bold serif) text(3xl)">Title!!</h1>

View File

@ -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"));
</script>
</body>
</html>`;