feat: update components and hooks to use get_untracked for improved performance

This commit is contained in:
asepharyana
2026-07-04 03:03:36 +07:00
parent 8166023f91
commit 27e929580e
85 changed files with 1703 additions and 1843 deletions
+4 -3
View File
@@ -25,9 +25,10 @@ export * from "./pagination.js";
* clear(); // guaranteed to clear the timeout
* }
*/
export function createAbortControllerWithTimeout(
timeoutMs: number,
): { controller: AbortController; clear: () => void } {
export function createAbortControllerWithTimeout(timeoutMs: number): {
controller: AbortController;
clear: () => void;
} {
const controller = new AbortController();
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
// Unref so the timeout doesn't keep the process alive