mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-12-02 04:54:06 +01:00
Don't load response when blocking large responses
This commit is contained in:
1 parent
f694456ddc
commit
8b5b66acf0
10 files changed
+197
-122
No files matched your search
@@ -42,6 +42,8 @@ export function Tabs({
|
||||
}: Props) {
|
||||
const ref = useRef<HTMLDivElement | null>(null);
|
||||
|
||||
value = value ?? tabs[0]?.value;
|
||||
|
||||
// Update tabs when value changes
|
||||
useEffect(() => {
|
||||
const tabs = ref.current?.querySelectorAll<HTMLDivElement>(`[data-tab]`);
|
||||
|
||||
Reference in new issue
Block a user