Skip to content

fix(submission): scribing canvas render order and unrecorded Voice teardown - #8542

Merged
adi-herwana-nus merged 2 commits into
masterfrom
lws49/fix-submission-page-edge-cases-rebased
Aug 12, 2026
Merged

fix(submission): scribing canvas render order and unrecorded Voice teardown#8542
adi-herwana-nus merged 2 commits into
masterfrom
lws49/fix-submission-page-edge-cases-rebased

Conversation

@adi-herwana-nus

Copy link
Copy Markdown
Contributor

These changes are taken from rebasing #8531 on top of latest master.

I reverted the empty .catch() block change (recorder.js), it's not good practice to silently ignore errors without surfacing to the user, we will take a closer look and implement properly when we decide to refactor/revamp Voice Response component.

LWS49 added 2 commits August 12, 2026 11:42
Fabric.js re-parents the raw <canvas> node into its own container div, so a
sibling rendered before it would need React to `insertBefore` relative to a
node that is no longer a direct child — which throws on every toggle, e.g. a
redundant re-initialize resetting `isCanvasLoaded`. Appending a trailing
sibling never needs a reference node.
`stopRecord()` rejects with "Recorder has already stopped", and nothing awaits
it — so it becomes an unhandled rejection, surfacing as a full-page crash under
StrictMode's dev-only double mount/unmount on every unrecorded Voice question.
@adi-herwana-nus
adi-herwana-nus merged commit cd6dddb into master Aug 12, 2026
14 checks passed
@adi-herwana-nus
adi-herwana-nus deleted the lws49/fix-submission-page-edge-cases-rebased branch August 12, 2026 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants