这是什么原因导致的报错

来源:5-5 用useContext存储全局用户信息

Rxg98

2021-08-07

Line 23:6:  React Hook useEffect has a missing dependency: 'callback'. Either include it or remove the dependency array. If 'callback' changes too often, find 

the parent component that defines it and wrap that definition in useCallback  react-hooks/exhaustive-deps


写回答

2回答

Nolan

2021-08-10

这个可以先跳过,后面会讲useCallback相关的内容

0
0

qq_慕哥3569984

2021-08-08

光发这英文感觉也看不出问题来,至少把报错的代码发出来看看呗

0
0

React17+Hook+TS4 优质实践,仿 Jira 企业级项目

解锁 React17 高阶用法,轻松应对大型复杂长周期项目

2691 学习 · 1236 问题

查看课程