|
|
@@ -69,7 +69,11 @@ const ProductDetailView: React.FC = () => {
|
|
|
// staleTime: staleTime,
|
|
|
// });
|
|
|
|
|
|
- const getAreaMutation = useMutation({
|
|
|
+ useEffect(() => {
|
|
|
+ getProductMutation.mutate();
|
|
|
+ }, []);
|
|
|
+
|
|
|
+ const getProductMutation = useMutation({
|
|
|
mutationFn: async () => {
|
|
|
dispatch(startLoading({}));
|
|
|
const res = await productApi.loadPackage({
|