Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
useMergedRefs.ts426 B
import { useCallback } from "react"; export function useMergedRefs<T>(...refs: (React.Ref<T> | undefined | null)[]) { return useCallback( (node: T | null) => { refs.forEach((ref) => { if (typeof ref === "function") { ref(node); } else if (ref && typeof ref === "object") { (ref as React.MutableRefObject<T | null>).current = node; } }); }, [refs], ); }

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/Southclaws/storyden'

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