[feat] Add LiveStreaming Support #5691

Merged
neb-b merged 35 commits from feat/go-live into master 2021-03-23 00:48:10 +01:00
Showing only changes of commit 8ae7247c35 - Show all commits

View file

@ -56,8 +56,6 @@ export default function LivestreamSetupPage(props: Props) {
}`;
}
const [isFetching, setIsFetching] = React.useState(true);
const [isLive, setIsLive] = React.useState(false);
const [livestreamClaims, setLivestreamClaims] = React.useState([]);
React.useEffect(() => {
@ -72,16 +70,13 @@ export default function LivestreamSetupPage(props: Props) {
})
.then((res) => {
if (res && res.items && res.items.length > 0) {
const claim = res.items[res.items.length - 1];
setLivestreamClaims(res.items.reverse());
} else {
setLivestreamClaims([]);
setIsFetching(false);
}
})
.catch(() => {
setLivestreamClaims([]);
setIsFetching(false);
});
}, [activeChannelClaimStr]);