Skip to content

umi4 useModel如果返回改变state的方法,为什么这个方法在定义的时候必须要用useCallback包裹,不包裹就会造成性能优化无效,每次都render #12272

Unanswered
buquan asked this question in Q&A
Discussion options

You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@fz6m
Comment options

@buquan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants