fix(vite): partial island loading (#3226)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { Partial } from "@fresh/core/runtime";
|
||||
import { ReadyIsland } from "../../islands/tests/Ready.tsx";
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<div f-client-nav>
|
||||
<h1>Partial</h1>
|
||||
<Partial name="partial-test">
|
||||
<a href="/tests/partial_insert">click me</a>
|
||||
</Partial>
|
||||
<ReadyIsland />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { Partial } from "@fresh/core/runtime";
|
||||
import { CounterHooks } from "../../islands/tests/CounterHooks.tsx";
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<Partial name="partial-test">
|
||||
<CounterHooks />
|
||||
</Partial>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user