Skip to content

fix: make search cache key a getter so it re-evaluates when the query changes#335

Merged
danielroe merged 2 commits intonpmx-dev:mainfrom
teemingc:main
Jan 29, 2026
Merged

fix: make search cache key a getter so it re-evaluates when the query changes#335
danielroe merged 2 commits intonpmx-dev:mainfrom
teemingc:main

Conversation

@teemingc
Copy link
Copy Markdown
Contributor

@teemingc teemingc commented Jan 29, 2026

While I was trying out the site, I noticed the search results wouldn't change after the first search even if I typed in a new query.

This PR ensures the cache key is recomputed when the query changes by refactoring it from a string to a getter. Admittedly, I'm not very familiar with Vue and simply described the issue to OpenCode with GLM 4.7 while pointing it to the search.vue file.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs.npmx.dev Ready Ready Preview, Comment Jan 29, 2026 7:27pm
npmx.dev Ready Ready Preview, Comment Jan 29, 2026 7:27pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
npmx-lunaria Ignored Ignored Jan 29, 2026 7:27pm

Request Review

@danielroe danielroe added this pull request to the merge queue Jan 29, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 29, 2026
@danielroe danielroe added this pull request to the merge queue Jan 29, 2026
Merged via the queue into npmx-dev:main with commit 1eac591 Jan 29, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants