Skip to content

请教代码设计思路 #277

@DerrickTel

Description

@DerrickTel

if (mergedValue !== newValue && onChangeRef.current) {

这里为什么要加这么一个判断,如果修改的值变成和默认值一样,这个函数就不执行了。是为了解决哪个问题?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions