Skip to content

ref.current #4

@yisar

Description

@yisar

我回来了!我发现有人,只使用 ref,而不使用 reactive

https://github.com/pago/reactive#why-refcurrent-instead-of-refvalue

也就是说,模拟不支持 Proxy 的嵌套,但是默认使用 ref 的话,用户就会主动感知到,然后主动加 .value

另外我发现,这里的 diff 算法有优化空间:https://github.com/xcodebuild/overdom/blob/master/packages/overdom/src/directive.ts#L120

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions