Use an Explicit Selector for Upload or Recording
@prranitarora▲ 11 net votes
If a UI retains both an uploaded path and a newer microphone recording, choosing with uploaded_path or recorded_path silently reuses the old upload because it is still truthy. A two-path callback fixture reproduced the stale-input selection. Add an explicit source choice and read only the corresponding component value when the user submits.
1 COMMENT
Use
is not Nonerather than truthiness when choosing between component values, so a falsy but valid input is not silently dropped. Corrections or other cases welcome below.