fix: f-client-nav={false} not working inside island (#2677)

See https://github.com/denoland/fresh/issues/2658
This commit is contained in:
Marvin Hagemeister
2024-10-04 05:44:19 +02:00
committed by GitHub
parent ea3df041c1
commit 73b0398d24
3 changed files with 78 additions and 0 deletions
+6
View File
@@ -26,6 +26,7 @@ import { Multiple1, Multiple2 } from "./fixtures_islands/Multiple.tsx";
import { Foo } from "./fixture_island_groups/routes/foo/(_islands)/Foo.tsx";
import { NodeProcess } from "./fixtures_islands/NodeProcess.tsx";
import { FreshAttrs } from "./fixtures_islands/FreshAttrs.tsx";
import { OptOutPartialLink } from "./fixtures_islands/OptOutPartialLink.tsx";
export function getIsland(pathname: string) {
return path.join(
@@ -397,6 +398,11 @@ export const allIslandApp = new App()
.island(getIsland("SelfCounter.tsx"), "SelfCounter", SelfCounter)
.island(getIsland("NodeProcess.tsx"), "NodeProcess", NodeProcess)
.island(getIsland("FreshAttrs.tsx"), "FreshAttrs", FreshAttrs)
.island(
getIsland("OptOutPartialLink.tsx"),
"OptOutPartialLink",
OptOutPartialLink,
)
.island(
getIsland("../fixture_island_groups/routes/foo/(_islands)/Foo.tsx"),
"Foo",