SSR Queries
Server-rendered with reactive filtering
5 results
Learn NuxtDone
Build appPending
Write testsPending
Deploy to productionPending
Set up CI/CDDone
Debounced search
You can also use useAction with the debounce option for manual control:
How it works
import { searchTodos } from '#actions'
// Reactive query with useActionQuery
const search = ref('')
const { data, pending, error, refresh } = useActionQuery(
searchTodos,
() => ({ q: search.value }),
)
// Re-fetches automatically when search changes
// Manual debounced search with useAction
const { execute, data: result, isExecuting } = useAction(
searchTodos,
{ debounce: 300 },
)