Skip to main content
Glama
index.mjs438 B
// packages/react/use-previous/src/use-previous.tsx import * as React from "react"; function usePrevious(value) { const ref = React.useRef({ value, previous: value }); return React.useMemo(() => { if (ref.current.value !== value) { ref.current.previous = ref.current.value; ref.current.value = value; } return ref.current.previous; }, [value]); } export { usePrevious }; //# sourceMappingURL=index.mjs.map

Latest Blog Posts

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/kkShrihari/miEAA3_mcp'

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