Refac refresh video list when videoId changing

This commit is contained in:
MerlinScheurer
2025-03-06 23:54:12 +01:00
parent 838c6ae145
commit 0fc86407be
4 changed files with 15 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ const ChannelVideo = ({ videoType }: ChannelVideoProps) => {
const channel = channelResponse;
const videoList = videoResponse?.data;
const pagination = videoResponse?.paginate;
const refreshWhenVideoIdChanges = videoId !== null;
const hasVideos = videoResponse?.data?.length !== 0;
@@ -80,6 +81,7 @@ const ChannelVideo = ({ videoType }: ChannelVideoProps) => {
channelId,
pagination?.current_page,
videoType,
refreshWhenVideoIdChanges,
]);
if (!channel) {