ext-apps/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonathan Hefner def96b392a
Fix onhostcontextchanged handler invocation in examples
`App.onhostcontextchanged` is a setter-only property with no getter.
TypeScript doesn't prevent reading from setter-only properties, so
`app.onhostcontextchanged?.(ctx)` compiles but silently returns
`undefined` at runtime.

Extract the handler into a named `handleHostContextChanged()` function
and call it directly after `connect()`, matching the pattern used in
`basic-server-vanillajs` and other examples.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 13:38:33 -06:00
..
basic-host Rewrite Quickstart guide with type-checked code examples 2026-01-24 09:41:51 -06:00
basic-server-preact Rewrite Quickstart guide with type-checked code examples 2026-01-24 09:41:51 -06:00
basic-server-react Rewrite Quickstart guide with type-checked code examples 2026-01-24 09:41:51 -06:00
basic-server-solid Rewrite Quickstart guide with type-checked code examples 2026-01-24 09:41:51 -06:00
basic-server-svelte Rewrite Quickstart guide with type-checked code examples 2026-01-24 09:41:51 -06:00
basic-server-vanillajs Rewrite Quickstart guide with type-checked code examples 2026-01-24 09:41:51 -06:00
basic-server-vue Rewrite Quickstart guide with type-checked code examples 2026-01-24 09:41:51 -06:00
budget-allocator-server Refactor server startup functions 2026-01-24 09:27:54 -06:00
cohort-heatmap-server Refactor server startup functions 2026-01-24 09:27:54 -06:00
customer-segmentation-server Refactor server startup functions 2026-01-24 09:27:54 -06:00
debug-server Refactor server startup functions 2026-01-24 09:27:54 -06:00
integration-server Refactor server startup functions 2026-01-24 09:27:54 -06:00
map-server Refactor server startup functions 2026-01-24 09:27:54 -06:00
pdf-server Refactor server startup functions 2026-01-24 09:27:54 -06:00
qr-server Refactor server startup functions 2026-01-24 09:27:54 -06:00
quickstart Rewrite Quickstart guide with type-checked code examples 2026-01-24 09:41:51 -06:00
say-server Refactor server startup functions 2026-01-24 09:27:54 -06:00
scenario-modeler-server Refactor server startup functions 2026-01-24 09:27:54 -06:00
shadertoy-server Refactor server startup functions 2026-01-24 09:27:54 -06:00
sheet-music-server Fix onhostcontextchanged handler invocation in examples 2026-01-25 13:38:33 -06:00
system-monitor-server Refactor server startup functions 2026-01-24 09:27:54 -06:00
threejs-server Refactor server startup functions 2026-01-24 09:27:54 -06:00
transcript-server Fix onhostcontextchanged handler invocation in examples 2026-01-25 13:38:33 -06:00
video-resource-server Refactor server startup functions 2026-01-24 09:27:54 -06:00
wiki-explorer-server Refactor server startup functions 2026-01-24 09:27:54 -06:00
run-all.ts add EXAMPLE=folder-name support for tests & basic-host (#292) 2026-01-19 20:16:37 +00:00