MCPcopy
hub / github.com/freshframework/fresh / islandApp

Function islandApp

packages/fresh/tests/no_client_js_test.tsx:25–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23const allIslandCache = await buildProd({ islandDir: ALL_ISLAND_DIR });
24
25function islandApp(): App<unknown> {
26 const app = new App().get("/", (ctx) => {
27 const sig = signal(0);
28 return ctx.render(
29 <Doc>
30 <Counter count={sig} />
31 </Doc>,
32 );
33 });
34 allIslandCache(app);
35 return app;
36}
37
38// ---------------------------------------------------------------------------
39// Static pages (no islands, no f-client-nav)

Callers 1

Calls 2

getMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected