A social knowledge tool for researchers built on ATProto
45
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 14 lines 329 B view raw
1import { useSuspenseQuery } from '@tanstack/react-query'; 2import { getUrlMetadata } from '../dal'; 3 4interface Props { 5 url: string; 6} 7 8export default function useUrlMetadata(props: Props) { 9 const metadata = useSuspenseQuery({ 10 queryKey: [props.url], 11 queryFn: () => getUrlMetadata(props.url), 12 }); 13 return metadata; 14}