Skip to main content
Glama

Convex MCP server

Official
by get-convex
useIsOverflowing.tsx594 B
import { useState, useLayoutEffect } from "react"; // Inspired by https://www.robinwieruch.de/react-custom-hook-check-if-overflow/. export function useIsOverflowing(ref: React.RefObject<HTMLElement>) { const [isOverflow, setIsOverflow] = useState(false); // Force this overflow check to happen every time a component rerenders. const force = Math.random(); useLayoutEffect(() => { const { current } = ref; if (current) { const hasOverflow = current.scrollWidth > current.clientWidth; setIsOverflow(hasOverflow); } }, [ref, force]); return isOverflow; }

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