mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-12 02:51:39 +00:00
fix(Discover): flashing on tab switch
This commit is contained in:
parent
d33f78ee39
commit
6d0136e545
1 changed files with 6 additions and 1 deletions
|
|
@ -16,7 +16,12 @@ const styles = require('./styles');
|
|||
const SCROLL_TO_BOTTOM_THRESHOLD = 400;
|
||||
|
||||
const Discover = () => {
|
||||
const urlParams = useParams();
|
||||
const { type, transportUrl, catalogId } = useParams();
|
||||
const urlParams = React.useMemo(() => ({
|
||||
type,
|
||||
transportUrl,
|
||||
catalogId
|
||||
}), [type, transportUrl, catalogId]);
|
||||
const [queryParams] = useSearchParams();
|
||||
const { t } = useTranslation();
|
||||
const { core } = useServices();
|
||||
|
|
|
|||
Loading…
Reference in a new issue