Cascading Selects
Country → State → City. Each level filters the next.
Form validation patterns with Superforms v2 + Valibot v1.
Country → State → City. Each level filters the next.
Options for State and City are filtered using $derived. When a parent changes, the onchange callback resets child values to empty string. This avoids $effect anti-patterns and works safely with pre-populated forms.