Skip to content

umi4 useModel如果返回改变state的方法,为什么必须要用useCallback包裹,经测试如果不用callback包裹,在使用的地方通过useModel第二个参数返回这个方法 #12271

Closed
buquan started this conversation in General
Discussion options

You must be logged in to vote

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants