diff --git a/package.json b/package.json index f21d13405..76babca87 100644 --- a/package.json +++ b/package.json @@ -129,7 +129,7 @@ "json-loader": "^0.5.4", "lbry-format": "https://github.com/lbryio/lbry-format.git", "lbry-redux": "lbryio/lbry-redux#42bf926138872d14523be7191694309be4f37605", - "lbryinc": "lbryio/lbryinc#67bb3e215be3f13605c5e3f9f2b0e2fb880724cf", + "lbryinc": "lbryio/lbryinc#4c00df007b60de6a5bc0e5915170d05697848a55", "lint-staged": "^7.0.2", "localforage": "^1.7.1", "lodash-es": "^4.17.14", diff --git a/src/ui/page/channel/view.jsx b/src/ui/page/channel/view.jsx index 420c9879f..3c7f5793a 100644 --- a/src/ui/page/channel/view.jsx +++ b/src/ui/page/channel/view.jsx @@ -78,6 +78,7 @@ function ChannelPage(props: Props) { const [coverPreview, setCoverPreview] = useState(cover); const [searchQuery, setSearchQuery] = useState(''); const [searchResults, setSearchResults] = useState(undefined); + const claimId = claim.claim_id; // If a user changes tabs, update the url so it stays on the same page if they refresh. // We don't want to use links here because we can't animate the tab change and using links @@ -126,14 +127,12 @@ function ChannelPage(props: Props) { ); } - if (channelIsMine) { - fetchSubCount(claim.claim_id); - } - React.useEffect(() => { setSearchResults(null); setSearchQuery(''); - }, [uri]); + + fetchSubCount(claimId); + }, [uri, fetchSubCount, claimId]); return ( @@ -187,14 +186,12 @@ function ChannelPage(props: Props) {