In Vue 3.5 + TypeScript 5.8, the component loads a short user card by userId, shows the name, the number of active tags, and the loading status. It is required to preserve correctness during rapid userId switches and repeated prop updates. Build: Vite 5.4, Vue 3.5.8, TypeScript 5.8.3, Chromium 128+ browser. Run mode: open the page with the component and provide a mock fetchProfile(userId: string): Promise<{ name: string; tags: string[]; active: boolean }>; the output at the bottom of the panel must be strictly in the format Tags: N · Status: on/off. Reproduction: 1) mount the component with userId='anna'; 2) quickly switch to userId='boris'; 3) wait for both responses; 4) verify that only boris data remains in the DOM and the exact status text. Assumptions: the API returns JSON without extra fields, tags is an array of strings, and no network errors occur.
Vue 3.5.8 Composition API, TypeScript 5.8.3, Vite 5.4, browser Chromium 128+. No additional packages. Component uses <script setup lang="ts"> and standard fetch mock in tests/manual reproduction.
Use line comments to explain the problem, its impact, the fix and how to test it.