SEV-392: combobox setOptions() for reactive parent-fed option lists #5

Merged
bastian merged 1 commits from sev-392/combobox-setoptions into main 2026-06-10 19:09:15 -04:00
Owner

Follow-up to the combobox: setOptions(arr) so a parent can feed a reactive option list in via x-effect="setOptions(vpicMakes)" — the reliable way to pass a parent component's reactive array into the nested x-data (a plain closure over the parent scope doesn't track Alpine updates). Falls back to config.options for static lists. 18/18 tests pass. No consumers yet.

Follow-up to the combobox: `setOptions(arr)` so a parent can feed a reactive option list in via `x-effect="setOptions(vpicMakes)"` — the reliable way to pass a parent component's reactive array into the nested `x-data` (a plain closure over the parent scope doesn't track Alpine updates). Falls back to `config.options` for static lists. 18/18 tests pass. No consumers yet.
bastian added 1 commit 2026-06-10 19:09:10 -04:00
Passing a parent component's reactive array into the nested combobox x-data
needs x-effect="setOptions(vpicMakes)" — a plain closure over the parent
scope doesn't track Alpine updates. Falls back to config.options for static
lists. 18/18 tests pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
bastian merged commit cab06d7c83 into main 2026-06-10 19:09:15 -04:00
bastian deleted branch sev-392/combobox-setoptions 2026-06-10 19:09:16 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SwitchEV/shared#5