use videoId for refresh dependency

This commit is contained in:
Simon
2025-03-07 10:39:14 +07:00
parent 0fc86407be
commit 9c847f492a
4 changed files with 4 additions and 8 deletions

View File

@@ -45,7 +45,6 @@ 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;
@@ -81,7 +80,7 @@ const ChannelVideo = ({ videoType }: ChannelVideoProps) => {
channelId,
pagination?.current_page,
videoType,
refreshWhenVideoIdChanges,
videoId,
]);
if (!channel) {