Skip to main content
Glama

Convex MCP server

Official
by get-convex
useIsOverflowing.test.tsx708 B
import React from "react"; import { renderHook } from "@testing-library/react"; import { useIsOverflowing } from "@common/lib/useIsOverflowing"; type FakeElement = { scrollWidth: number; clientWidth: number; }; test("should run again even if ref identity does not change", () => { const fakeElement = { scrollWidth: 30, clientWidth: 20, }; const ref = React.createRef<HTMLElement>() as React.MutableRefObject<HTMLElement>; ref.current = fakeElement as HTMLElement; const { result, rerender } = renderHook(() => useIsOverflowing(ref)); expect(result.current).toBe(true); (ref.current as FakeElement).scrollWidth = 10; rerender(); expect(result.current).toBe(false); });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/get-convex/convex-backend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server