rerun Discover effect on url params changed

This commit is contained in:
NikolaBorislavovHristov 2019-05-23 14:41:51 +03:00
parent 0980ad0f31
commit f359a8c072

View file

@ -19,7 +19,7 @@ const Discover = ({ urlParams }) => {
const category = urlParams.category || '';
window.location.replace(`#/discover/${type}/${catalog}/${category}`);
}
}, []);
}, [urlParams.type, urlParams.catalog]);
return (
<div className={styles['discover-container']}>
<NavBar