Commit 8a91f8e
committed
Tighten Nuxt example navigation and search race
Move the search debounce's `latestSearchRequest` increment to the
top of the timeout callback so clearing the input invalidates any
in-flight `/api/search` response. The previous order let a slow
prior fetch overwrite the just-cleared `searchResult`.
Convert the post detail page's author link from a raw anchor to
`<NuxtLink>` so navigating to the author profile uses Nuxt's
client-side router instead of triggering a full page reload, in
line with the back-link conversion already applied to the page.
#676
Assisted-by: Claude Code:claude-opus-4-71 parent a888000 commit 8a91f8e
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
191 | | - | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments