Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于 useSetState 返回值中的第二个参数没有用 useMemoriedFn 包裹产生的问题 #2583

Open
cold72 opened this issue Jun 28, 2024 · 1 comment

Comments

@cold72
Copy link

cold72 commented Jun 28, 2024

企业微信截图_8b59d200-7e15-4019-9b7d-47c0e65cccbb 如图,在 useMemo / useEffect / useCallback 中使用 useSetState 的时候,eslint 会提示需要把 setState 作为依赖。 查阅源码发现这块的返回值并没有用 useMemoriedFn 包裹。希望能在新版本改善
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants