fix missing hmr wrapper
This commit is contained in:
parent
8b21aba029
commit
4f594c2168
@ -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>
|
||||
|
@ -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>`;
|
||||
|
Loading…
Reference in New Issue
Block a user