From 41ebb2344e67a746414e1274aca09831d14e8a99 Mon Sep 17 00:00:00 2001 From: raviteja83 Date: Thu, 5 Oct 2023 15:18:37 +0530 Subject: [PATCH] fix: code --- .../set-up-video-conferencing/peerlist-optimizations.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/javascript/v2/how-to-guides/set-up-video-conferencing/peerlist-optimizations.mdx b/docs/javascript/v2/how-to-guides/set-up-video-conferencing/peerlist-optimizations.mdx index 11135752a8..928e09577a 100644 --- a/docs/javascript/v2/how-to-guides/set-up-video-conferencing/peerlist-optimizations.mdx +++ b/docs/javascript/v2/how-to-guides/set-up-video-conferencing/peerlist-optimizations.mdx @@ -54,6 +54,8 @@ import { usePaginatedParticipants } from '@100mslive/react-sdk'; const PaginatedPeers = () => { const { peers, total, loadPeers, loadMorePeers } = usePaginatedParticipants({ role: roleName, limit: 20 }); + // to check if there are more peers + const hasNext = total > peers.length; useEffect(() => { loadPeers();