Nekomusume

Invalid Date

如果我们能知道过去的一切,就能知道未来⏳......

智力值

0

金币

0

粉丝

0

  • 复制链接
  • 分享至QQ
  • 分享至QQ空间
  • 分享至微博
  • 微信扫一扫

Next.js

Next.js is a SSR framework based on React.js. This circle is for discussion of questions or technique concerning NextJS.

Members
0
  • Home
  • Wiki
  • Circles
  • Shop
  • NextJS Error Logs NextJS Error Logs
    Search
    English
    Trading
  • Circle Home
  • Encyclopedia
  • Questions
  • Posts
  • Help Center
  • About Manitori
  • Issues
  • Privacy Policy
HomeQuestions

Questions in

Ask question

全部

内容 1|
NekomusumeNekomusume
|
a year ago
|
Question

[antd: Message] You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.

I'm getting this error when using MessageWarning: [antd: Message] You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.Here is my code:import { message } from 'antd'; export default function Page() { const [messageApi, contextHolder] = message.useMessage(); const res = await fetch("/api/...", { method: "POST", }); if (!res.ok) { messageApi.error("Error! Fail to login!"); } return ( <Home> ...

next.js
antd
393
1 answer
全部
NextJS Error Logs

NextJS Error Logs

分享

Record the errors or problems you encountered in NextJS with their solutions.

Created at2024-07-20 21:39
Members0
Parent circle
Next.jsNext.js
⭕

Founder

NekomusumeNekomusume

Master

NekomusumeNekomusume