Repository navigation
Fix 404 audio in the browser JavaScript sound demo - #7675
Conversation
The demo hard-coded /vintage-button-sound-effect.mp3, but the docs site is mounted at /docs, so the file was never found and both play buttons were silent. Resolving the file with rx.asset prepends the frontend path and also shows readers the supported way to reference an asset. Claude-Session: https://claude.ai/code/session_01LwJUCUDZhZY71q8Azr37BQ
[Low impact] The PR appears safe to merge; no new actionable issues were found. SummaryThe sound demo now uses
Reviews (4) · Last reviewed commit: "Isolate the sound demo test's state regi..." · Reviewed by Greptile |
Merging this PR will improve performance by 5.1%2 warnings
Performance Changes
Tip Curious why performance improved? Comment Comparing |
Rendering the page under the real path registered the demo's state class first, so test_docgen_double_eval's re-evaluation of the same page failed with a duplicate substate. Claude-Session: https://claude.ai/code/session_01LwJUCUDZhZY71q8Azr37BQ
There was a problem hiding this comment.
All reported issues were addressed across 1 file (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Render inside a RegistrationContext, as the tutorial tests do, so the demo's state class does not stay in the shared registries. Claude-Session: https://claude.ai/code/session_01LwJUCUDZhZY71q8Azr37BQ
|
Validated in the docs app running locally on this branch. The demo's audio source is now Generated by Claude Code |

Type of change
Description
The inline-script sound demo on
api-reference/browser-javascripthard-coded/vintage-button-sound-effect.mp3, but the docs site is mounted at/docs, so the request returned 404 and both play buttons were silent. The demo now resolves the file withrx.asset, which prepends the frontend path and also shows readers the supported way to reference an asset.Rendering the page locally confirms the script now references
/docs/vintage-button-sound-effect.mp3.https://claude.ai/code/session_01LwJUCUDZhZY71q8Azr37BQ
Generated by Claude Code