引用useCallback

This commit is contained in:
al 2024-07-23 20:11:25 +08:00
parent a090c7063f
commit e95fbf9c16
4 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
"use client"; "use client";
import React, { useState, useEffect, useMemo } from "react"; import React, { useState, useEffect, useCallback } from "react";
import { Toast } from "antd-mobile"; import { Toast } from "antd-mobile";
import { generateSignature } from "@/utils/crypto"; import { generateSignature } from "@/utils/crypto";
import webviewBaseRequest from "@/utils/webviewBaseRequest"; import webviewBaseRequest from "@/utils/webviewBaseRequest";

View File

@ -1,6 +1,6 @@
"use client"; "use client";
import React, { useState, useEffect,useMemo } from "react"; import React, { useState, useEffect,useCallback } from "react";
import { useRouter, useSearchParams } from "next/navigation"; import { useRouter, useSearchParams } from "next/navigation";
import { Toast } from "antd-mobile"; import { Toast } from "antd-mobile";
import { generateSignature } from "@/utils/crypto"; import { generateSignature } from "@/utils/crypto";

View File

@ -1,6 +1,6 @@
"use client"; "use client";
import React, { useState, useEffect, useMemo, useCallback } from "react"; import React, { useState, useEffect, useCallback } from "react";
import { generateSignature } from "@/utils/crypto"; import { generateSignature } from "@/utils/crypto";
import webviewBaseRequest from "@/utils/webviewBaseRequest"; import webviewBaseRequest from "@/utils/webviewBaseRequest";
import Link from "next/link"; import Link from "next/link";

View File

@ -1,6 +1,6 @@
"use client"; "use client";
import React, { useState, useEffect, useMemo } from "react"; import React, { useState, useEffect, useCallback } from "react";
import Divider from "@/components/Divider"; import Divider from "@/components/Divider";
import Link from "next/link"; import Link from "next/link";
import { Toast, Switch } from "antd-mobile"; import { Toast, Switch } from "antd-mobile";