这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@GauharChan
Copy link

我尝试使用mini-vue运行一个demo的时候出错

const original = { foo: 1 };  
const nested = readonly(reactive(original))
console.log(toRaw(nested) === original) // false

按照官方api文档来说,打印的结果应该是true。
所以我很疑惑,并看到toRaw的实现和vue3源码有一定的区别

@GauharChan
Copy link
Author

@cuixiaorui 是否这个修改违反了这个项目的mini思想?

@GauharChan GauharChan closed this May 11, 2022
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

Successfully merging this pull request may close these issues.

1 participant