pleroma/app/soapbox/api/hooks/streaming/useListStream.ts

17 lines
No EOL
345 B
TypeScript

import { useLoggedIn } from 'soapbox/hooks';
import { useTimelineStream } from './useTimelineStream';
function useListStream(listId: string) {
const { isLoggedIn } = useLoggedIn();
return useTimelineStream(
`list:${listId}`,
`list&list=${listId}`,
null,
null,
{ enabled: isLoggedIn },
);
}
export { useListStream };