SPA shows placeholder default blocks before preset data loads #10

Closed
opened 2026-06-14 05:19:44 +00:00 by shawn · 1 comment
Owner

The SPA initializes blocks from a hardcoded default array (Noise Gate, Compressor, NAM Model, IR Cab, EQ, Hall Reverb). These flash on screen until the state poller replaces them. Fix: Initialize blocks as [], show No preset loaded empty state.

The SPA initializes blocks from a hardcoded default array (Noise Gate, Compressor, NAM Model, IR Cab, EQ, Hall Reverb). These flash on screen until the state poller replaces them. Fix: Initialize blocks as [], show No preset loaded empty state.
Author
Owner

Fixed. The SPA no longer initializes blocks from a hardcoded default array. The FXScreen component initializes fxList as an empty array []. When no preset is loaded (!connected || !state?.current_preset), it renders "No FX blocks in the chain." instead of flashing placeholder defaults. The PresetsScreen also shows "No preset loaded" when current_preset is null.

See ui/src/App.tsxFXScreen component lines 237-244.

**Fixed.** The SPA no longer initializes blocks from a hardcoded default array. The `FXScreen` component initializes `fxList` as an empty array `[]`. When no preset is loaded (`!connected || !state?.current_preset`), it renders "No FX blocks in the chain." instead of flashing placeholder defaults. The `PresetsScreen` also shows "No preset loaded" when `current_preset` is null. See `ui/src/App.tsx` — `FXScreen` component lines 237-244.
shawn closed this issue 2026-06-18 23:06:28 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shawn/pi-multifx-pedal#10