mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-06 06:07:33 +02:00
Don't refresh products on sidebar
This commit is contained in:
@@ -20,8 +20,7 @@ interface DetailsLayoutProps {
|
|||||||
|
|
||||||
const DetailsLayout: React.FC<DetailsLayoutProps> = ({ pattern, children }) => {
|
const DetailsLayout: React.FC<DetailsLayoutProps> = ({ pattern, children }) => {
|
||||||
useDocumentTitle(`CSS Layout ∙ ${pattern}`);
|
useDocumentTitle(`CSS Layout ∙ ${pattern}`);
|
||||||
|
const products = React.useMemo(() => randomItems(ProductList, 3), []);
|
||||||
const products = randomItems(ProductList, 3);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
|
Reference in New Issue
Block a user