56d79c919ee504457c8e8afc7841b291702f00fc
After a person swap the parent navigates to a new URL and the server returns swapped names. The component's searchTerm was only set once from initialName at mount time ($state(initialName) captures the initial value only). Adding a reactive $effect ensures the displayed name updates whenever initialName changes — fixing the swap button showing stale names. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Description
No description provided
Languages
Python
73.3%
TypeScript
11.4%
Java
10.8%
Svelte
4.2%
Shell
0.1%