mirror of
https://github.com/hansjone/netx.git
synced 2026-10-10 02:00:45 +08:00
Ship gated eye polish, fabric levels, and collection UI refresh.
Topology MCP adds pull/compact/bundle/suggest-hubs with a no-template skill path; API gains fabric level and NE collection policy; web list pages get paging and denser collect/network workflows. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
b1aee86701
commit
b81e5869a6
91 changed files with 10395 additions and 1513 deletions
11
web/src/hooks/useDebouncedValue.ts
Normal file
11
web/src/hooks/useDebouncedValue.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { useEffect, useState } from "react";
|
||||
|
||||
/** Debounce a rapidly changing value (e.g. keyword input) before querying. */
|
||||
export function useDebouncedValue<T>(value: T, delayMs = 300): T {
|
||||
const [debounced, setDebounced] = useState(value);
|
||||
useEffect(() => {
|
||||
const timer = window.setTimeout(() => setDebounced(value), delayMs);
|
||||
return () => window.clearTimeout(timer);
|
||||
}, [value, delayMs]);
|
||||
return debounced;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue