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

ref.current #4

Open
yisar opened this issue Nov 27, 2020 · 0 comments
Open

ref.current #4

yisar opened this issue Nov 27, 2020 · 0 comments

Comments

@yisar
Copy link

yisar commented Nov 27, 2020

我回来了!我发现有人,只使用 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant