kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
17 wiersze
345 B
TypeScript
17 wiersze
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 };
|