Repository navigation
Echoic v1.0.2 — fix blank audio recording page
Fixes a crash on pure-audio recording detail pages (blank/black screen). The hidden element used an inline callback ref, so every provider render produced a new ref function: React detached/re-attached the element, attachMediaElement bumped mediaVersion, which re-rendered and produced another new ref — an infinite update loop (React error #185). Video pages took a different code path and looked fine.
The fix passes the stable attachMediaElement callback directly as the ref and ignores no-op attach events for the same element; the same correction is applied to the video player and the public share player. Verified: pure-audio detail page, public audio share page and video page (playback + scene strip) all render with 0 page errors, audio element present and playable. Version 1.0.2; backend suite unchanged (514 passed / 4 env-gated skipped). Image: ghcr.io/wpcwzy/echoic:v1.0.2 (multi-arch).