Skip to content

📚 The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Update debounce function comments to improve clarity

Axel MINART4d14610e9192
diff --git a/frontend/app/composables/utils.ts b/frontend/app/composables/utils.ts
index 8b4a258d..cc082f2c 100644
--- a/frontend/app/composables/utils.ts
+++ b/frontend/app/composables/utils.ts
@@ -77,10 +77,10 @@ export function debounceDelayed<T extends (...args: unknown[]) => void>(fn: T, d
let timeout: ReturnType<typeof setTimeout> | null = null;
return (...args: Parameters<T>) => {
- // Annuler le timer précédent
+ // Cancel the previous timer
if (timeout) clearTimeout(timeout);
- // Lancer un nouveau timer
+ // Launch a new timer
timeout = setTimeout(() => {
fn(...args);
timeout = null;