mirror of
http://88.130.71.182:3000/BlitTech/badoHair_fe.git
synced 2026-06-13 11:13:57 +00:00
Update May 21 by Elvis
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import { Suspense, useState, useEffect } from "react";
|
||||
import { Suspense, useState, useEffect, startTransition } from "react";
|
||||
import { useLanguage } from "@/contexts/LanguageContext";
|
||||
import { useSearchParams, useRouter } from "next/navigation";
|
||||
import { categories } from "@/data/products";
|
||||
@@ -21,7 +21,7 @@ function ShopContent() {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
setLoading(true);
|
||||
startTransition(() => setLoading(true));
|
||||
listProducts({
|
||||
per_page: 100,
|
||||
category: selectedCategory === "all" ? undefined : selectedCategory,
|
||||
|
||||
Reference in New Issue
Block a user