use action from store instead of directly modifying state in components

This commit is contained in:
pa
2026-03-08 20:15:37 +09:00
parent 3d3ad27ca0
commit eeb5288027
13 changed files with 61 additions and 8 deletions

View File

@@ -17,7 +17,7 @@
watch(
() => filterState.search,
async (value) => {
globalSearchStore.query = value;
globalSearchStore.setQuery(value);
// When query < 2 chars, override the built-in filter
// so all items (hint categories) stay visible